Download QIC Core
Transcript
QIC PROCESSOR CORE MANUAL J1 1 2 3 4 5 6 RxD TxD RC6 DP2 MA152WACT-ND RC7 V+ V- PC J2 1 2 3 U1 QICT QICR 13 8 11 10 1 3 QICLink C7 1 uf R1 IN R2 IN T1 IN T2 IN C1+ C1 - R1 OUT R2 OUT T1 OUT T2 OUT C2+ C2 - 12 9 14 7 4 5 C5 1 uf C8 1 uf C6 1 uf VCC MAX232CWE RS232 Interface Figure 7. The serial interface circuitry. 3.2.1 RS232 COMPATIBLE SERIAL PORT Details of the connections for the serial port interface are shown in Figure 8. These connections will need to be made in order to connect the PC to the QIC Processor Core. The connections shown are for a female DB9 connector. Note that only the signals TxD, RxD and GND are required for serial communications. The other lines are required for in-circuit serial programming only, but are shown here for reference. Referring to Figure 7, the MAX232CWE IC takes care of the conversions between TTL and RS232. All signals at connector J1 are expected to be at standard RS232 levels. RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 RE0 RE1 RE2 RA0 RA1 RA2 RA3 RA4 RA5 GND QIC Motherboard Programmer PIC16F877 20MHz RS232 HVP Enable RESET 1 6 To PC 1 6 2RxD 7RTS 3TxD 8CTS 4DTR 9 5GND DB-9 Pins Signal Description --------------------------------------------2 (1)RxD Transmit to PC 3 (2)TxD Receive from PC 4 (3)DTR Data In from PC 8 (4)CTS Data Out to PC 7 (5)RTS Clock from PC 5 (6)GND Ground VCC RD7 RD6 RD5 RD4 RD3 RD2 RD1 RD0 CLK RC7 RC6 RC5 RC4 RC3 RC2 RC1 RC0 DB9 Figure 8. Serial interface to PC wiring. When writing software to use the serial port, the user must be careful to specify RC6 for transmitting serial data, and RC7 for receiving serial data. Some compilers allow for software implemented serial ports on any I/O pins of the device. The user will also need © Quanser Consulting Inc., 2002 QIC Processor Core Accessories - Page 15