Hi,
Could someone please give me some information on how to use the Mcbsp port as GPIO. I have read through the Mcbsp reference guide chapter 10 and it is still unclear. I understand, for example, that in order to use the DX pin as gpio you need to:
set (R/X)RST = 0 in SPCR
set (R/X)IOEN = 1 in PCR
set the register bit 5 of 0x018C0024 to 1 or 0
However, there are no examples on the syntax of this (which there should be) so I could use some help. How do I specifically set this bit of the register to a high or low state? Also, is this a good solution for toggling a pin for PWM? I notice that it says that the Mcbsp should be halted when changing states. Some help would be appreciated since I have noticed that it takes awhile for any responses on this forum.
Brady