I'd built my project which can use to display the characters on the LCD. It uses 4 bits to display it. But now i will need the data to send as serial to another module. What is the most probable way to implement this?
The pic16f88 has an uart. You can use that to send data serially. However, thats pin RB2 and RB5 for Rx and Tx. You have have to change your pin mapping so that you can use those pins.
Another approach is to bit bang your data serially through an unused pin, such as RA2. You can find source code for it, or you can write the routine yourself.
You could connect a second LCD just like the first, change E to RA2.
Is this a Current meter?
Note:
Don't GND MCLR, tie it to VDD with a 10K resistor. If you enable the internal RC OSC & MCLR you may have a hard time reprogramming it (unless your programmer supports VPP before VDD)
The pic16f88 has an uart. You can use that to send data serially. However, thats pin RB2 and RB5 for Rx and Tx. You have have to change your pin mapping so that you can use those pins.
Another approach is to bit bang your data serially through an unused pin, such as RA2. You can find source code for it, or you can write the routine yourself.
Yes, 16F88 do have UART. However it has been used for the LCD. I just hoping to get the serial data out without modifying the existing design, perhaps.
Yes, 16F88 do have UART. However it has been used for the LCD. I just hoping to get the serial data out without modifying the existing design, perhaps.
Well as 16F88 uses the internal 4 MHz clock .... i scare it cant synchronous with the shift register, will this occur by the way?
Any shift register act like a line passing automatically read parallel data in and transmit serial data out? Cause I found some that needs one input as LOW for parallel input, the HIGH for serial shifting...
The SN54/ 74LS165 is an 8-bit parallel load or serial-in register with
complementary outputs available from the last stage. Parallel inputing occurs
asynchronously when the Parallel Load (PL) input is LOW. With PL HIGH,
serial shifting occurs on the rising edge of the clock; new data enters via the
Serial Data (DS) input. The 2-input OR clock can be used to combine two
independent clock sources, or one input can act as an active LOW clock
enable.
I'd looked at this model, SN54/74LS165 by Motorola. Seems like when PL is LOW, it can load my parallel input. How about my serial output? Does that occurs when the PL HIGH? If this is the case, which means I have to manually change the state of the PL?
Yes, 16F88 do have UART. However it has been used for the LCD. I just hoping to get the serial data out without modifying the existing design, perhaps.
looking at your schematic..how are you using the uart for the lcd ? your loading 4bits at a time...
if this is not pcb, i really think the easiest way is to use the uart. You would only to switch one pin around.
Back to your question, i'd probably say the second is easiest if you have the components available. Otherwise, ra2 as a serial out. which is a bit more work then.....using....the...hardware....u....a..r..t....