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
Former DARPA official and Google executive Dr. Kaigham Gabriel believes sensor companies think too much like suppliers and need to bring their products closer to the consumer.
One way to keep a Formula One racing team moving at breakneck speed in the pit and at the test facility is to bring CAD drawings of the racing vehicle’s parts down to the test facility and even out to the track.
Most of us would just as soon step on a cockroach rather than study it, but that’s just what researchers at UC Berkeley did in the pursuit of building small, nimble robots suitable for disaster-recovery and search-and-rescue missions.
Engineers at Festo were inspired by how a caterpillar builds its cocoon when designing its new 3D Cocooner printer.
Design engineers need to prepare for a future in which their electronic products will use not just one or two, but possibly many user interfaces that involve touch, vision, gestures, and even eye movements.
More:Blogs|News
Quick Poll
The Continuing Education Center offers engineers an entirely new way to get the education they need to formulate next-generation solutions.
SEMESTERS: 1  |  2  |  3  |  4  |  5  |  6 |  7 | 8 | 9


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 Course June 28-30:
Sponsored by Proto Labs
Learn More   |   Login   |   Archived Classes
Twitter Feed
Design News Twitter Feed
Like Us on Facebook

Technology Marketplace

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