HOME  |  NEWS  |  BLOGS  |  MESSAGES  |  FEATURES  |  VIDEOS  |  WEBINARS  |  INDUSTRIES  |  FOCUS ON FUNDAMENTALS
  |  REGISTER  |  LOGIN  |  HELP
Comment
Fred Eady
User Rank
Blogger
Re: Feb 6 - Day 3 Bootloader Firmware Design
Fred Eady   2/6/2013 2:37:01 PM
NO RATINGS
Where can I find what TRISxxxx and LATxxxx are doing?  I'm using them but have no idea what I'm doing.

@Kentj: Basically, TRIS determines if the I/O pin is an input or output. A 1 means the port pin is an input. A zero makes the port pin an output.

LAT is short for LATCH.  LAT is always associated with an output pin. For instance, you write to LATDbits.LATD0 and read from PORTDbits.RD5. You set LATDbit.LATD0 to an output by writing a zero to TRISDbits.TRISD0. Conversely, you assign RD5 as an input by writing a 1 to TRISDbits.TRISD5.



Partner Zone
Latest Analysis
As more electric cars and plug-in hybrids hit the highways, the need for battery chargers is growing.
Festo is developing small wind turbines for generating power to buildings. The model for the mini wind devices is the seagull wing.
MIT students modified a 3D printer to enable it to print more than one object and print on top of existing printed objects. All of this was made possible by modifying a Solidoodle with a height measuring laser.
A battery management system to support an electric motorcycle lithium-ion battery pack took first place in Texas Instruments' annual engineering innovation contest.
This Gadget Freak Review looks at a keyless Bluetooth padlock that works with your smartphone, along with a system that tracks your sleep behavior and wakes you at the perfect time in your sleep cycle to avoid morning grogginess.
More:Blogs|News
Design News Webinar Series
7/23/2014 11:00 a.m. California / 2:00 p.m. New York
7/17/2014 11:00 a.m. California / 2:00 p.m. New York
6/25/2014 11:00 a.m. California / 2:00 p.m. New York
5/13/2014 10:00 a.m. California / 1:00 p.m. New York / 6:00 p.m. London
Quick Poll
The Continuing Education Center offers engineers an entirely new way to get the education they need to formulate next-generation solutions.
Aug 18 - 22, Embedded Software Development With Python & the Raspberry Pi
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  6


Focus on Fundamentals consists of 45-minute on-line classes that cover a host of technologies. You learn without leaving the comfort of your desk. All classes are taught by subject-matter experts and all are archived. So if you can't attend live, attend at your convenience.
Next Class: September 30 - October 2
Sponsored by Altera
Learn More   |   Login   |   Archived Classes
Twitter Feed
Design News Twitter Feed
Like Us on Facebook

Sponsored Content

Technology Marketplace

Copyright © 2014 UBM Canon, A UBM company, All rights reserved. Privacy Policy | Terms of Service