Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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

Status
Not open for further replies.

Karthikeyan.K

Newbie level 4
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top