L laxmid New Member Jul 13, 2010 #1 Hi, can you please suggest me how to write code for pic32 in c? Thanks & regards, Laxmi
3v0 Coop Build Coordinator Forum Supporter Jul 13, 2010 #2 If you know C: Read the compiler documentation. I expect there will be a "Hello World": sort of program. Maybe it just blinks a LED. If you do not know C it may be easier to learn it on a PC.
If you know C: Read the compiler documentation. I expect there will be a "Hello World": sort of program. Maybe it just blinks a LED. If you do not know C it may be easier to learn it on a PC.
L laxmid New Member Jul 13, 2010 #3 Thanks for ur reply. i know c. but dont have much idea about pic32. only thing we should study ports configuration n timers. can you pleas give me an brief idea about simpl code by using all ports? so that i can come up. Thanks & Regards, Laxmi
Thanks for ur reply. i know c. but dont have much idea about pic32. only thing we should study ports configuration n timers. can you pleas give me an brief idea about simpl code by using all ports? so that i can come up. Thanks & Regards, Laxmi
L laxmid New Member Jul 13, 2010 #5 Thanks for ur reply. No i have compiler with MPLAB software. Let us see the example by using PIC16f877A tOGGLING OF ALL PORTS the code is : #include<pic.h> void main() { ADCON1=0x06; //disable all analog TRISA=TRISB=TRISC=TRISD=TRISE=0x00; // make all ports as o/p while(1) { PORTA=PORTB=PORTC=PORTD=PORTE=0XFF; // SOME DELAY() PORTA=PORTB=PORTC=PORTD=PORTE=0X00; // SOME DELAY() } } Like the above example how can we write code by using pic32. Thanks & Regards, Laxmi
Thanks for ur reply. No i have compiler with MPLAB software. Let us see the example by using PIC16f877A tOGGLING OF ALL PORTS the code is : #include<pic.h> void main() { ADCON1=0x06; //disable all analog TRISA=TRISB=TRISC=TRISD=TRISE=0x00; // make all ports as o/p while(1) { PORTA=PORTB=PORTC=PORTD=PORTE=0XFF; // SOME DELAY() PORTA=PORTB=PORTC=PORTD=PORTE=0X00; // SOME DELAY() } } Like the above example how can we write code by using pic32. Thanks & Regards, Laxmi
N nickelflippr Member Jul 13, 2010 #6 You haven't looked in the plibs (peripheral librarys) folder, with all manner of examples, including ports. Maybe it's a separate download from the compiler, I forget, but it would be found in the same location.
You haven't looked in the plibs (peripheral librarys) folder, with all manner of examples, including ports. Maybe it's a separate download from the compiler, I forget, but it would be found in the same location.
L laxmid New Member Jul 13, 2010 #7 Thanks for ur reply. Can you please give a link as u said plib? Thanks & Regards, Laxmi
L laxmid New Member Jul 14, 2010 #9 can you please tel which pic32 series has usb master+ethernet? its urgent . please help. Thanks & Regards, Laxmi
can you please tel which pic32 series has usb master+ethernet? its urgent . please help. Thanks & Regards, Laxmi
S seasons555copy New Member Jul 14, 2010 #10 Look here **broken link removed** The ones at the bottom have both USB and a ethernet controller (although you'll need an external phy). An example chip could be the PIC32MX795F512L
Look here **broken link removed** The ones at the bottom have both USB and a ethernet controller (although you'll need an external phy). An example chip could be the PIC32MX795F512L