CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

TRISA on 16F819

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Dennis Owen
Guest







TRISA on 16F819
PostPosted: Thu Jan 15, 2004 12:42 am     Reply with quote

When I write 255 to TRISA on the 16F819 I get the following on
a read operation. 11011111. I know that RA5 is multiplexed for
other functions but no matter what I do I still get the same thing.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Thu Jan 15, 2004 9:37 am     Reply with quote

In the 16F819 data sheet, look in the section on I/O ports.
In that section, there is a block diagram for each pin.
For RA5, it shows the "RD TRIS" signal is connected to a
buffer, whose input is tied to Vss (ie., Ground).
Furthermore, it doesn't even show a TRIS flip-flop.
You can't set TRIS on that pin. It's always an input.

However, based on what you've said about always reading
a zero for TRIS on that pin, I would say that the block
diagram has an error. It shows Vss feeding into an
inverting buffer. This would make it always read a "1".
Since you're reading a zero, it's likely that it's really
a non-inverting buffer, or it could be that the buffer's
input is tied to Vdd instead.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group