Can we manually Set or Clear PCA Peripheral Pin in 8051?

Status
Not open for further replies.

Karthikeyan.K

Newbie level 4
Joined
Jan 8, 2015
Messages
7
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
77
Hai all.

I have an issue with my C8051F120. I'm using P1_0 Pin as Programmable Counter Array Pin. Whenever a Match occur between ((PCA0H<<8) | PCA0L) and (PCA0CPH0<<8) | PCA0CPL0), the PCA Module will Toggle P1_0 Pin. But at some instance I have to manually toggle that same and then I will hand over the Pin to PCA Module. This is what my requirement. But unfortunately I cannot Toggle P1_0 Pin manually since it is utilized by PCA Module. Is there any way to do this? (Ex: like By disabling Cross-Bar / PCA for certain time).

Please anybody help me in this. Thanks in advance.
 

Code:
 CR = 0; // stop PCA
PCA0 = 0x0000;  

CR = 1; // start PCA
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…