swapna u
Member level 1
Hi all,
I am using dsPIC30F6014A controller and I am trying to write a driver program to read/write the port pins. I am using C30 compiler. Since this controller has A,B,C,D,F,G ports I am writing a value to each port and trying to read the value written using functions for read/write operation. But I am facing some problems as mentioned below:
1. I am not able to read or write to PORTF and PORTG.
2. And also the value what I read/write is not getting reflected in the port registers(PORTA,PORTB...PORTG).
3. I am also not able to write a value more than "4000" to each of the ports though this is a 16 bit controller capable of reading/writing values upto 65535.
Please look into the issue and let me know. Please share the code to read/write to ports of dspic30f controller if you have it. Waiting for your earliest response.
Thankyou
Swapna
I am using dsPIC30F6014A controller and I am trying to write a driver program to read/write the port pins. I am using C30 compiler. Since this controller has A,B,C,D,F,G ports I am writing a value to each port and trying to read the value written using functions for read/write operation. But I am facing some problems as mentioned below:
1. I am not able to read or write to PORTF and PORTG.
2. And also the value what I read/write is not getting reflected in the port registers(PORTA,PORTB...PORTG).
3. I am also not able to write a value more than "4000" to each of the ports though this is a 16 bit controller capable of reading/writing values upto 65535.
Please look into the issue and let me know. Please share the code to read/write to ports of dspic30f controller if you have it. Waiting for your earliest response.
Thankyou
Swapna