High Level Language for PICs

Thread Starter

Iodem_Asakura

Joined Sep 14, 2004
140
I have heard of some compilers on C and Basic to program PICs, but i don't know much abouit that. Can you give me some information. I have only programmed PICs using his about 35 instructions set in assambler language.
 

Dave

Joined Nov 17, 2003
6,960
Have a look at the following Technical Documentaion page for Microchip PIC Microcontrollers:

http://www.microchip.com/stellent/idcplg?I...GrpID=PIC%20MCU

Select your device and it will return a series of downloadable pdf files for the microcontroller of your choice. You should be able to find a C language reference manual from the search results, amongst other things.

I do recommend looking around the Microchip website since it contains some very useful information.
 

pebe

Joined Oct 11, 2004
628
Originally posted by Iodem_Asakura@Oct 5 2005, 05:20 AM
I have heard of some compilers on C and Basic to program PICs, but i don't know much abouit that. Can you give me some information. I have only programmed PICs using his about 35 instructions set in assambler language.
[post=10797]Quoted post[/post]​
If you are already using assembler and are happy with it, then I suggest you stay with it. It makes for the most efficient use of code and you have control over all aspects of your programing.
 

Thread Starter

Iodem_Asakura

Joined Sep 14, 2004
140
I know i have more control programming in assambler. But i think i can do some things more quickly (and still be eficient) using other High Level Language.
 
Umm I beleave the people who make the pics have free software (compliers etc) on their site (microchip.com)

I myself would like to get into C because you can do more (well the programing is more simplified) but I have to get started in PIC BASIC first
 

king_rero

Joined Oct 10, 2005
4
Originally posted by Overclocked2300@Oct 10 2005, 05:08 PM
Umm I beleave the people who make the pics have free software (compliers etc) on their site (microchip.com)

I myself would like to get into C because you can do more (well the programing is more simplified) but I have to get started in PIC BASIC first
[post=10905]Quoted post[/post]​
Ok, Many thanx indeed.
BUT
exactly I need just a simple led program for 16f877a
Because I've built a multipic programmer and I wanna test it so please help me
 
Well what do you want the program to do? Do you want the LED to flash? Blink Once? Or stay on? Theres a number of things you can make an LED do.
 

king_rero

Joined Oct 10, 2005
4
Originally posted by Overclocked2300@Oct 21 2005, 08:58 PM
Well what do you want the program to do? Do you want the LED to flash? Blink Once? Or stay on? Theres a number of things you can make an LED do.
[post=11175]Quoted post[/post]​
At first thank u 4 care
I wrote some one but I've confused I hope that my code is wrong .....
any way my code is normal , flash an LED on port A0 when Port A6 is high
and my programmer successes in the programming at least as icprog told me and so winpic.
Do you want the LED to flash?
this what I want.

many thanx again
 

king_rero

Joined Oct 10, 2005
4
Hi again
Here is my code I tested my multipic with,
Rich (BB code):
;my first code for 16f877A
;Autor:king_rero
;<Email edited out>
;
;
LIST	P=16F877a
STATUS   EQU H'03'
TRISA    EQU H'85'		;TRISA REGISTER FOR SETUP OF PORTB
PORTA 	 EQU H'05'		;PORTA REGISTER TO DRIVE PORT B
;***SET UP PORT A IN & OUTPUT****
	BSF 	STATUS,5	;SWITCH TO BANK0 TO SET UP PORT B
	MOVLW 	B'110000'	;RA0,1,2,3 ARE OUT, RA4,5 ARE INPUT
	MOVWF 	TRISA		;
	BCF 	STATUS,5	;SWITCH BACK TO BANK0 TO USE PORT B
;******************MAIN LED PROGRAM*******************************
	
MAIN	BTFSS	PORTA,4
	GOTO	MAIN
	MOVLW   B'000011'       ;Turn the LED on by first putting 
        MOVWF   PORTA           ;it into the w register and then  
END

	
	


Rich (BB code):
and I used HS crystal and tried RC oscillator,BUt ......
Nothing gonna be good!!!!!!!
sometimes my 16f877A earased by himself and when I checked it up with
multipic it's really earased!!!!! 
for real I completely wondered....

Thank you
 
Top