I need to use on PIC24F an output as ano open drain.
I just need to set to 1 the propper bit of the ODCx register.
Is there in CCS a function or a pre processor directive that makes this?
thanks
FvM
Joined: 27 Aug 2008 Posts: 2337 Location: Germany
Posted: Tue Dec 29, 2009 4:16 am
Quote:
Is there in CCS a function or a pre processor directive that makes this?
No.
- You can define the OCD registers yourself by #byte or #word statements
- You can emulate open drain by switching the respective pin between output_low and input, as it would be
done with other PICs that don't have OCD registers.
Guest
Posted: Tue Dec 29, 2009 5:09 am
FvM wrote:
Quote:
Is there in CCS a function or a pre processor directive that makes this?
No.
- You can define the OCD registers yourself by #byte or #word statements
- You can emulate open drain by switching the respective pin between output_low and input, as it would be
done with other PICs that don't have OCD registers.
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