Embedded C/C++

Moderators: Lundin
Number of threads: 199
Number of posts: 374

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
HELP! Posted by Engireland on 16 Feb 2011 at 4:47 PM
Hi I am completely new to embedded C programming. In college I have being given the task of programming a pic 18f4620 to switch an LED on and off, simple as that. I really have no clue where to start, we were provided with an example code that just turned the LED on and off with a slight delay that can be adjusted, all inside an infinite loop. I need to modify this programme to include a sitch to turn the LED on and off. I was told things like instead of using LATD use PORTD and also to include a TRISD command in the code but I have no idea what to do from how to connect the switch into the pic to even getting started with the code. Any help would be greatly appreciated



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.