Searching \ for '[PIC]:Code to get me started with 16F877?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=16F
Search entire site for: 'Code to get me started with 16F877?'.

Exact match. Not showing close matches.
PICList Thread
'[PIC]:Code to get me started with 16F877?'
2000\09\04@092319 by Graham North

flavicon
face
Hi,
does anyone have any simple code (eg led flashing) that they could send me,
so that I can start playing with this new PIC.  I think I an going to use it
in my degree course final year project.
Many thanks
Graham North

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
"[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's

2000\09\04@140503 by xandinho

flavicon
face
>does anyone have any simple code (eg led flashing) that they could send me,
>so that I can start playing with this new PIC.  I think I an going to use it
>in my degree course final year project.

       Graham, study the PIC a bit, you'll learn to do it anyways. It's simple! You can find good things in the "embeeded controller handbook", given away graciously (wow, my spell checker just said I'm dumb), and a nice pic course in http://www.picpoint.com. If you don't find the course, I have it zipped here and I'll be happy to send to your e-mail


--------------8<-------Corte aqui-------8<--------------

       All the best!!!
       Alexandre Souza
       spam_OUTxandinhoTakeThisOuTspaminterlink.com.br

--------------8<-------Corte aqui-------8<--------------

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
"[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's

2000\09\04@140505 by Dale Botkin

flavicon
face
On Mon, 4 Sep 2000, Graham North wrote:

> Hi,
> does anyone have any simple code (eg led flashing) that they could send me,
> so that I can start playing with this new PIC.  I think I an going to use it
> in my degree course final year project.
> Many thanks
> Graham North

http://www.piclist.com/techref/default.asp?from=/techref/piclist/../microchip/&url=../piclist/projects.htm

That's a start.  Just visit http://www.piclist.com/ and browse around.
There are even a couple of my projects in there somewhere.

Dale
---
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not "Eureka!" (I found it!) but "That's funny ..."
               -- Isaac Asimov

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
"[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's

2000\09\04@180326 by Tony Nixon

flavicon
picon face
Graham North wrote:
>
> Hi,
> does anyone have any simple code (eg led flashing) that they could send me,
> so that I can start playing with this new PIC.  I think I an going to use it
> in my degree course final year project.
> Many thanks
> Graham North

This program will flash a LED from port pin RC4

RC4 -> Led Anode
Led Cathode -> 1K res
1K res -> ground

;
       Title "LED flasher."
;
       list P = 16F877
;
       include "P16f877.inc"  ; use definition file for 16F877
;
; --------------------
; USER RAM DEFINITIONS
; --------------------
;
       CBLOCK 0x20   ; RAM starts at address 20h
NaHi
NaLo
NbHi
NbLo
       ENDC
;
       org 0x0000      ; start address = 0000h

; INITIALISE PORTS
; binary used to see individual pin level

       movlw b'00000000'       ; all port pins = low
       movwf PORTA
       movlw b'00000000'
       movwf PORTB
       movlw b'00000000'
       movwf PORTC
       movlw b'00000000'
       movwf PORTD
       movlw b'00000000'
       movwf PORTE

       bsf STATUS,RP0  ; set RAM Page 1 for TRIS registers

; INITIALISE PORTS
; binary used to see individual pin IO status

       movlw b'00000000'       ; all IO pins = outputs
       movwf TRISA
       movlw b'00000000'
       movwf TRISB
       movlw b'00000000'
       movwf TRISC
       movlw b'00000000'
       movwf TRISD
       movlw b'00000000'
       movwf TRISE

       movlw b'00000110'       ; all analog pins = digital
       movwf ADCON1

       bcf STATUS,RP0  ; back to RAM page 0

; LED FLASH LOOP

Loop    bsf PORTC,4     ; RC4 = high = led on
       call Delay

       bcf PORTC,4     ; RC4 = low = led off
       call Delay
       goto Loop

; 1/2 SEC DELAY SUBROUTINE WITH 4MHz CLOCK

Delay   movlw 01h
       movwf NbHi
       movlw 03h
       movwf NbLo
       movlw 8Ah
       movwf NaHi
       movlw 5Bh
       movwf NaLo

DeLoop0 decfsz NaLo,F
       goto DeLoop0
       decfsz NaHi,F
       goto DeLoop0
       decfsz NbLo,F
       goto DeLoop0
       decfsz NbHi,F
       goto DeLoop0
       ;
       return

       end

--
Best regards

Tony

ICmicro's
http://www.picnpoke.com
.....salesKILLspamspam@spam@picnpoke.com

--
http://www.piclist.com hint: PICList Posts must start with ONE topic:
"[PIC]:" PIC only "[EE]:" engineering "[OT]:" off topic "[AD]:" ad's

2000\09\05@064142 by Graham North

flavicon
face
Thanks to all who replied.

Regards

Graham North

--
http://www.piclist.com hint: The list server can filter out subtopics
(like ads or off topics) for you. See http://www.piclist.com/#topics

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...