Port B is sufficient for the LCD and UART operation. Since LCD is interfaced in 4-bit mode, only 6 pins of the MCU is used by the LCD (4 data pins + Register select pin + Enable pin). The LCD is operated in 4-Bit mode, PC and PIC are bridged via a SiLabs CP210x based USB to UART module (You can replace this with a MAX232 TTL to RS232 and interface via the DB9 connector) The PIC:Ĭontroller used here is PIC16F628A. PORT B pins RB1 and RB2 acts as RX and TX pins respectively. PIC16F628A has one USART module, which is configured in asynchronous (full duplex) mode. Also, it echos back the typed character to the PC. Without the USART module, the controller will be in a mute state.What actually we are gonna do here is, When you type in your terminal program (on your PC), the PIC receives it and displays it in a 16×2 LCD. In layman terms, a USART module in a PIC is like our voice box. Now, before making a PC and a PIC talk, if you are not sure about USART module and LCD, here are some good articles about them to just refresh: In today’s world, we can make almost anything communicate with everything! How about communication between a PC and a microcontroller (PIC)?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |