Joined: 30 Aug 2005 Posts: 155 Location: Calgary, AB
Posted: Mon Jan 23, 2006 8:22 pm
I don't really understand what this does.
Can you not just use #USE FAST_IO to lock the tris register and then read and write to the port directly?
Ringo42
Joined: 07 May 2004 Posts: 263
Posted: Mon Jan 23, 2006 9:27 pm
I don't think it has anything to do with the serial buffer, it si with the pin_table array.
This is why I think that;
this does not work
ccs_pin = pin_table[pinn];
but neither does
ccs_pin = pin_table[1];
But this does work
ccs_pin=PIN_D2;
So it is something with Pin_table. This is the same code that worked with my PCM compiler, just not the old PCH. I have ordered a new PCH that will be here later this week but I would like to know why it does not work here. Is there another int8-int16 type error? It doesn't look like there is, but what am I missing?
Thanks for all the help so far.
Ringo _________________ Ringo Davis
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Mon Jan 23, 2006 9:52 pm
I don't have your version of the compiler and I cannot test the code.
Ringo42
Joined: 07 May 2004 Posts: 263
Posted: Tue Jan 24, 2006 8:53 pm
My new compiler came today and magically everything works now. Thanks for all the help.
Ringo _________________ Ringo Davis
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum