Again, check my tutorials, tutorial 11.4 reads a voltage, displays it on an LCD, and also sends it via RS232 (not requiring use of a hardware USART) - the actual display is under the control of two flags, so you can have it LCD only, RS232 only, or both - just by setting the flags.
It should be pretty easy to add a similar facility to the wattmeter code.
Well I am trying to search for USART guidance **broken link removed**
Sorry as the code i posted is random coz i wanna know is that the main point for the USART routine.
Well the author of the wattmeter project does reply me with this:
Code:
The 16F88 has a serial port which can be run in synchronous SPI mode
(3 wires), I2C mode (2 wires) or async (RS232). You just have to choose
the mode that can most easily be implimented on your module. The serial
port uses some of the pins that are currently allocated to the LCD. If
you don't need the LCD and switches, then just don't put those components
on the board! You could also disable the associated code in the software
(though this is not strictly necessary).
Is UART means i need to have the baud rate, parity bits..etc only?
I also found out that PIC16F88 has hardware UART.
Again, check my tutorials, tutorial 11.4 reads a voltage, displays it on an LCD, and also sends it via RS232 (not requiring use of a hardware USART) - the actual display is under the control of two flags, so you can have it LCD only, RS232 only, or both - just by setting the flags.
It should be pretty easy to add a similar facility to the wattmeter code.