Fred Eady
User Rank
Re: Feb 6 - Day 3 – Bootloader Firmware Design
Fred Eady   2/6/2013 2:37:01 PM
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
A new white paper by the Association for Advancing Automation says that increases in industrial robot shipments correlates positively with increases in US job growth based on Bureau of Labor statistics. The result could be new types of manufacturing and engineering jobs.
Google Developer Advocate Colt McAnlis will keynote at ARM TechCon in November and spoke with our sister site EDN in advance of his appearance there
Mechanical engineers at UW-Madison have released ParetoWorks—a 3D Web-based tool for rapid design optimization of parts for numerous objects and products.
A free UL webinar will show how to faster machine panel enclosure certification avoids delays to market, reduces cost, and eases traceability issues.
Take a look at 13 wild, scary, gadgets for Halloween.
Design News Webinar Series
10/1/2015 11:00 a.m. California / 2:00 p.m. New York
9/10/2015 11:00 a.m. California / 2:00 p.m. New York
10/20/2015 8:00 a.m. California / 11:00 a.m. New York
11/10/2015 11:00 a.m. California / 2:00 p.m. New York
Quick Poll
The Continuing Education Center offers engineers an entirely new way to get the education they need to formulate next-generation solutions.
Jul 6 - 10, Building Raspberry Pi Controllers with Python
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  6 |  7

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.
Learn More   |   Login   |   Archived Classes
Twitter Feed
Design News Twitter Feed
Like Us on Facebook

Sponsored Content

Technology Marketplace

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