Connection of rs232 and CAN board

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
wshaw207
Posts: 1
Joined: Thu Feb 22, 2007 9:47 pm

Connection of rs232 and CAN board

Post by wshaw207 »

Hi, can you please tell me if it is possible to connect both the RS232 Board and the CAN Board to Port C on the MCU using pic 16F877A. I've tried to connect both via a splitter and this didn't solve the problem. Any help will be much appreciated.
cheers Billly

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

It should be possible. The RS232 uses the TX and RX pins (C6 and C7) and the CAN component uses SPI, which uses SDI, SDO and SCK (C4, C5 and C3). The CAN component uses 2 additional lines - Chip_Select and Interrupt, which are C6 and C0 by default. You would need to change the ChipSelect line to C1 or C2 (within the property pages) and use the patch system to wire it appropriately.

This assumes that you don't need hardware handshaking on the RS232. If you do, then there is a problem because a total of 9 pins will be needed on port C, which is 1 too many!

Post Reply