Sonsivri
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
April 24, 2024, 07:54:52 07:54


Login with username, password and session length


Pages: [1]
Print
Author Topic: Req: Sample 'Hello World' IAR PIC project that sets config bits, and pin i/o's  (Read 3287 times)
0 Members and 1 Guest are viewing this topic.
snoop911
Junior Member
**
Offline Offline

Posts: 44

Thank You
-Given: 27
-Receive: 13


« on: June 20, 2010, 05:23:37 05:23 »

Hi,

Anyone have a sample iar pic project that generates a hex capable of programming a pic with config bits?

In mplab-mcc18, setting up the config bits and i/o's is pretty straightforward,

Code:
#pragma config OSC = INTIO67 , FCMEN = ON , etc...
DDRA = 0xFF;       // Port A - all inputs
LATCbits.RC3 = 0; // Port C bit 3 - output

but I downloaded the iar pic18 eval, and it has tutorials for fibonacci, but it doesn't have any sample project on working with the pic!  (i.e. include file(s) needed for a particular pic, setting  config bits, i/o setup, etc).

Even though it doesn't support many of the new pics, I'm looking to see how developing code with iar compares to mcc18/ccs.  If anyone has a sample project, that even toggles an led, that would be great!



   

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