Hi,
> void init_ports()
> {
> PORTA = 0;
> PORTB = 0;
> PORTC = 0;
>
> __asm
> banksel PORTA
> movf PORTA,W
> movf PORTB,W
> __endasm;
>
> ANSEL = ADC_CHANNEL_ANSEL;
> ANSELH = 0;
>
> TRISA = 0xff; // all input
> TRISB = OUT_TxD;
> TRISC = 0xc6;
Hopefully ADC_CHANNEL_ANSEL has the 2 LSb clear
to make RA<1:0> digital I/O pins?
Check for all pins used wether there is a second/third/...
function multiplexed on them (clock input/output, timer,
serial communication to name a few).
And what's OUT_TxD, does it configure the IOC-pins as inputs?
Which pins work? Which do not? Or can you make all of them work,
but not any two/three/four together?
Good luck,
Raphael
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user