Markus Rohe wrote: > > ahilleas schrieb: > > > > I have have the following program and one LED connected to every port > > pin. All pins are outputs. The problem is that LEDs connected to > > RA4/TOKI and RB4,5,6,7 don't blink. During the simulation everything > > seems to work. I have MPLAB V3,40. > > > > > > > > list p=16f84 > > #include "p16f84.inc" > > > > porta equ 05 > > portb equ 06 > > status equ 03 > > trisa equ 85 > > trisb equ 86 > > > > del equ 20 > > del1 equ 21 > > > > org 0 > > start > > clrf porta > > clrf portb > > bsf status,5 > > clrf trisa > > clrf trisb > > bcf status,5 > > > > start1 > > incf porta > > incf portb > > movlw h'01' > > movwf del1 > > delay1 > > movlw h'01' > > movwf del > > delay > > decfsz del > > goto delay > > decfsz del1 > > goto delay1 > > > > goto start1 > > > > end > > > > Hello Ahilleas > > your values in your delay routine are much too small. I assume you run > your PIC @ 4 Mhz, so the chip only needs 1µs to process one command. > > I'll send you a sample delay code for 0,5s. A table management is also > included :-). I hope you'll understand it, the comments are in German > :-( > > friendly regards > Markus > > ------------------------------------------------------------------------ > Name: delay05.asm > delay05.asm Type: ASM File (application/x-unknown-content-type-asm_auto_file) > Encoding: base64 here is some more delay routines that you might find handy.