The PHP extension bcompiler is used to compile PHP script code into PHP bytecode. This bytecode can be included just like any php file as long as the bcompiler extension is loaded. Once all the bytecode files have been created, a modified Embeder is used to pack all of the project files into the program exe. I'm looking for information how to send commands to the popular ELM327 OBD interface. I want to design a stand alone device that check long term fuel trim values along with some other parameters.
Please do NOT send me PMs with technical questions. Keep them in publicok i start from the very beginning.i need to see result on the hyper terminal.i had connected a serial connection from my demo board to my pc com1.i had set the baud rate on the hyper t.so will the result be show on the hyper t??in addition, what must i include in my program to tell it that i will output the result on the hyper t.?And i not using a c-compiler able microchip.meaning all assembly languageIf you send ASCII characters over the serial connection, the Hyperterminal will display what it receives. Of course you must write software on the PIC to do the sending, as I said above. ORIGINAL: Vicwhat must i put inside my program inorder to let my microprocessor know i will be using a hyperterminal to view my result?Here's the code I am using.BAUD9600equ 64; BRG value @ lo speed, 40MHz clockcodeinitrs232:; configure port pinsbsf TRISC,6; set both pins as INPUTSbsf TRISC,7; the USART reconfigures as neededmovlw BAUD9600movwf SPBRG; set ratebcf BAUDCON,BRG16; using 8 bit BRGmovlw b'00100010'; 8-bit tx,txen,async,lo speed,tsr emptymovwf TXSTAmovlw b'10010000'; spen,8-bit rx,crenmovwf RCSTAreturngetch:btfss RCSTA,OERR; seen an overrun?bra rxch; nobcf RCSTA,CREN; yes.
Reset receivebsf RCSTA,CREN; framing errors are automatically reset on next valid byterxch: clrwdt; if watchdog timer is enabledbtfss PIR1,RCIF; received a char?bra rxch; no. Check againmovf RCREG,wreturnputch: clrwdt; if watchdog timer is enabledbtfss PIR1,TXIF; txmit buffer full?bra putch; no. Check againmovwf TXREGreturn.
Use Hyperterminal to Change/Reset APC UPS Battery ConstantThis page describes how to reset the battery constant parameter in theAmerican Power Conversion Smart-UPS 700, model no. SU700NET, which will stop the blinking of the batterylevel LED bank.
This is because the UPS thinks the battery's capacity is much less than what it really is.Note: this fix may apply to other APC Smart UPS models but this has not been tried.Symptoms are that the UPS with new battery shows it with a full charge butit returns that it has a few minutes or less of run time and it is not overloaded. Also, the LED bank onthe right (battery level) might be blinking like it has less than 2 minutes run time but the entire bank(five LED's) are lit showing full charge.Follow these steps carefully:. Disable Powerchute or any other UPS software that might be communicating with the UPS. No programs can be using the COM port that the SU700NET is using. Also, the black cable that came with the SU700NET must be used to connect to it. Open Hyper-terminal, enter 'APC UPS' for the session name. Select the COM port that the UPS is on.
![]()
Set the port parameters to 2400 baud, 8 data bits, no parity, 1 stop bit, Xon/Xoff. The SU700NET UPS should be connected to Hyperterminal now.
If not, other problems exist. Make sure the CAPS LOCK is on.
Enter Y and the UPS should return SM. Enter 1 and if the UPS does not return PROG then wait a few seconds and enter 1 again, PROG should now be on screen. Enter 0 (zero) and the UPS should return the battery constant. This should be 96 for a brand new SU700-NET battery.
To change the battery constant parameter, press + until 96 is found. If a APC UPS other than the SU700NET is being used then the new battery constant likely will be different.This procedure should be done everytime the battery in the SU-700NET is replaced. Hyperterminal No Longer Supplied with WindowsBecause Hyperterminal is no longer supplied with Windows, it maybe necessary toinstall Windows XP Professional on an old computer with a COM port such as an oldnotebook PC/laptop PC.
Comments are closed.
|
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |