RS232 Master Slave Setup
Posted: Sun Feb 01, 2009 9:00 pm
Hello,
I’m not good at programming yet but working on it, that’s why I bought FlowCode v3 hoping it could do it all. But as I found out after using it for a while and checking the posts it turns out that it has limited RS232 capabilities. I learned it was mainly setup to program a master chip to communicate with Eblocks. I am trying to set up a simple program where I can remotely dim four lamps using PWM on two slave chips controlled from one master via RS232. I’m using three 16F877A IP chips each with their own 20MHZ crystals, setup – HS. WD timer off. I have checked the data sheets regarding addressable RS232 TX and RX bits but I am not clear on how to put it in my flow chart. I’ve tried various ways using the component macros and calculation boxes keeping in mind some of the examples found on the web site and in the forums but never saw anything that was exactly the same set up I’m trying to do, just bitts and pieces of other good things. I tried some string manipulation stuff as well but no luck. I’m doing the tests using three breadboards with direct connections and no Max CPE chip at this point. I think I’m having framing or data shifting issues. Some times it seems to work for a vary short time then the data gets crossed up or become intermittent. I’m using the same variable names in all the chips? I have uploaded the fcd. files In hopes that someone can shed some light on my problem. Any help would be appreciated, Thanks guys
Cris
I’m not good at programming yet but working on it, that’s why I bought FlowCode v3 hoping it could do it all. But as I found out after using it for a while and checking the posts it turns out that it has limited RS232 capabilities. I learned it was mainly setup to program a master chip to communicate with Eblocks. I am trying to set up a simple program where I can remotely dim four lamps using PWM on two slave chips controlled from one master via RS232. I’m using three 16F877A IP chips each with their own 20MHZ crystals, setup – HS. WD timer off. I have checked the data sheets regarding addressable RS232 TX and RX bits but I am not clear on how to put it in my flow chart. I’ve tried various ways using the component macros and calculation boxes keeping in mind some of the examples found on the web site and in the forums but never saw anything that was exactly the same set up I’m trying to do, just bitts and pieces of other good things. I tried some string manipulation stuff as well but no luck. I’m doing the tests using three breadboards with direct connections and no Max CPE chip at this point. I think I’m having framing or data shifting issues. Some times it seems to work for a vary short time then the data gets crossed up or become intermittent. I’m using the same variable names in all the chips? I have uploaded the fcd. files In hopes that someone can shed some light on my problem. Any help would be appreciated, Thanks guys
Cris