A little help please
Pliers
Posts: 280
I have been away too long and have forgotten the basics.
I thought this would run.
I'm using a QuickStart board. I know the board is OK.
I thought a few LEDs would have lit up.
I thought this would run.
I'm using a QuickStart board. I know the board is OK.
I thought a few LEDs would have lit up.
PUB ex01 cognew(@ex01A, 0) DAT ORG 0 ex01A MOV DIRA, #$FF ' Output to I/O 0 to 7 loop MOV OUTA, #$AA JMP #loop ' repeat loop FIT 496
Comments
loop
MOV OUTA, my_AA
JMP #loop ' repeat loop
my_LED long $00FF0000
my_AA long $00AA0000
The data sheet lead my astray, but the board LEDs are labeled P16-P23.
Here is the text copied from the data sheet I was using.
Thanks again.
My LEDs are Lit!
Have you seen this thread?
There are lots of links to QuickStart demos and project in it.
Plier, this thread has a really bad title. Think of it, just about half the threads in the forum would have the same title if everyone used "help please". I suppose there might be a few "help or else" but it still wouldn't be very meaningful. How about "Question about PASM I/O pin control"?
Now I need to go back thru the thread to look for misspelled words (a nitpickers work is never done).
If you look at the schematic, you will see that the LEDs are connected to P16 thru P23 via a 74HC51.
Yes, you are righty. I followed the earlier link you gave to see the quote in context and there isn't any mention about using a touchpad program. They are using P0 - P7 instead of P16 - P23 just like you said. IMO, the documentation is misleading and should be fixed.
Thanks for taking the time to clarify (I should have been more careful about reading the document).