dragonkvm.blogg.se

16f628a simple program
16f628a simple program













can you tell my the setings for this app? than I poke around with my multimeter or a resitor&LED but none of the outputs seems to be HIGH.Īlso, I havn't got used to the fuse setings in my programmer software, so maybe thats the problem. I'm using alkaline bateries filtred by a diode ( can I ?).

16f628a simple program

MY bread board setting is : The chip with 5.1V on pin 14 and ground on pin 5. I read that the 16f628A needed from 3.0 to 5.5 V. So I programmed my chip and placed it on an individual bread board, with a suply of 5.10 volts (6V taken down by diodes). It makes all outputs high and low very quikly, so I think that if I place a led on the outputs it would be on (blinking far to quikly for the eye to see).

16f628a simple program

Nop the nop's make up the time taken by the goto Movwf CMCON turn comparators off (make it like a 16F84) this is where the program starts running Org 0x0000 org sets the origin, 0x0000 for the 16F628A, _config 0x3D18 sets the configuration settings Include "P16F628A.inc" include the defaults for the chip LIST p=16F628A tell assembler what chip we are using

16f628a simple program

asm source file from Nigel´s tutorial page and assembled it into an hex to 16F628A. Thats what i needed, MPASMWIN from MPLAB.















16f628a simple program