Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 04, 2016, 12:57:18 00:57


Login with username, password and session length


Pages: [1]
Print
Author Topic: CCS LAT Register  (Read 2810 times)
0 Members and 1 Guest are viewing this topic.
alex@home
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 1
-Receive: 1


« on: April 08, 2008, 11:52:31 11:52 »

Hello.
Im beginner in CCS. Can anyone say me what can i do with the LAT Rigister?
The tris register i know, they are for the I/O direction.

thx alex
Logged
boris
Newbie
*
Offline Offline

Posts: 14

Thank You
-Given: 60
-Receive: 2


« Reply #1 on: April 08, 2008, 05:44:49 17:44 »

Each port has three registers for its operation. These
registers are:
• TRIS register (data direction register)
• PORT register (reads the levels on the pins of the device)
• LAT register (output latch)
The Data Latch register (LATA) is useful for readmodify-
write operations on the value driven by the I/O
pins.
Logged
alex@home
Newbie
*
Offline Offline

Posts: 17

Thank You
-Given: 1
-Receive: 1


« Reply #2 on: April 09, 2008, 09:33:13 09:33 »

thank you for the fast answer!

sorry for my bad english. so i understand it not complete.
is it right that the LAT register is only interesting if i would read and write with the same pin?
can you give me a small example from the expiry order?
Logged
Kloswiski
Guest
« Reply #3 on: April 13, 2008, 05:27:13 05:27 »

Why don't you just use the set_tris_x() function along with fuses i.e #fuse fast_io()? a good book that explains this for beginers is Embedded C programming and the microchip. it cost few dollars but very good though
Logged
Pages: [1]
Print
Jump to:  


DISCLAIMER
WE DONT HOST ANY ILLEGAL FILES ON THE SERVER
USE CONTACT US TO REPORT ILLEGAL FILES
ADMINISTRATORS CANNOT BE HELD RESPONSIBLE FOR USERS POSTS AND LINKS

... Copyright 2003-2999 Sonsivri.to ...
Powered by SMF 1.1.18 | SMF © 2006-2009, Simple Machines LLC | HarzeM Dilber MC