This is my sort of first try at a little program and would like to know if I am doing things right. I only understand the simple commands and there might be a better way of doing it, what do you think ?

The program is to eliminate every third pulse from a sensor. The pulse enters porta and is duplicated out on portb, every third pulse should be ignored and not duplicated.

This is my sort of first try at a little program and would like to know if I am doing things right. I only understand the simple commands and there might be a better way of doing it, what do you think ?

The program is to eliminate every third pulse from a sensor. The pulse enters porta and is duplicated out on portb, every third pulse should be ignored and not duplicated.

I have not yet mastered Mplab. Although years ago I knew how to check code and produce a file that was suitable to program into a device but things have changed. I was even having trouble following the walk-through toutorial (I'm sure the instruction are wrong).

I have got hold hold of a Pickit 1 flash project board and I think that will bring things along well. I do have a large complex idea of a program to tackle over the next year but I think its best to start small.

I have a PIC project board that I used to use for testing code and it would be very usefull to use as a testbed. I have a few 16C54A's left over from years back but I cant seem to get any life out of them.

Not sure if its my use (or bad attempt at) of MPlab but all test code does nothing.
Its probably a bad go at setting up the "Init".

Any hex file that makes a led light will be a great help ..... and the asm to show how it was setup would be very helpfull.

Im having some trouble that I hope someone can help with. I can't assign the output ports correctly !

Most of this setup routine in this asm file is taken from the first debounce lesson of the Pickit flash, setting GP3 as an input and all others as outs.

The simple program waits for a high input on GP3 and responds by setting a low output on GP2 and vice versa (when GP3 drops low - GP2 goes high). GP1 drives an LED that is toggeled every 3 cycles to visually show that there is data being passed through.

PROBLEM.
LED flashes to show a pulse input but GP2 has no output ?
I found the correct output on GP5 (don't know why, I didnt want it there)so as a test I setup GP0 as a duplicate output. I CAN get my output on GP0 but it will not come out of GP2.

This problem was measured directly on the chip pins while running on a pickit flash project board.