??? 11/29/07 16:06 Read: times |
#147573 - AT89S51 - input/output |
Hi all,
I m new here and in programing uP too. We had Atmel in school and... and I love it. I bought programmer ISP for fun and trying "develop" someting. I know a little instructions of ASM from school. But: I have uP AT89S51 at home and trying use LEDs (Output I/O) as first step. But I can not guess/find/think... where are address of I/O pins. I looked on datasheet and they say someting about :080H,090H addres - but compilator says someting about "out of memory" when i Try: .EQU portX = 80 ...¨ In AVR studio is a example with "out" instruction, The example is: ldi r20,someting out $18,r20 But it works very very wired, example when i try set 00O01000 to $18 - 2 diods glowing, 6 not. I tried a lot of addres - "$8-$20" but everything is wierd. And glowing diods only on port P2.X. AVR studio do NOT suppért AT89S51, I downloaded older version (3.56) and select "Custom" My question si : How i can set 0 and 1 to all I/O ports on AT89S51 - output? (I read article where say: "You must select if is PIN output or input" - where? ), where is a adress of this special register for port A,B,C,D(1,2,3,4) Or is a trouble with AvrStudio when AT89xxx are not support and compiler stoping me on lines like: (P0 data 0x80) or (.EQU portA =80) Very thx and have a nice day (here in czech rep, good deep nite) |
Topic | Author | Date |
AT89S51 - input/output | 01/01/70 00:00 | |
which compiler/assembler? | 01/01/70 00:00 | |
Metalink links | 01/01/70 00:00 | |
Re: link | 01/01/70 00:00 | |
Metalink | 01/01/70 00:00 | |
Registers | 01/01/70 00:00 | |
I will | 01/01/70 00:00 | |
Yep | 01/01/70 00:00 | |
... what a typo! | 01/01/70 00:00 | |
Yes - only Four Banks! | 01/01/70 00:00 | |
Atmel | 01/01/70 00:00 | |
Re: Atmel | 01/01/70 00:00 | |
Yes, I thought so | 01/01/70 00:00 | |
AVR | 01/01/70 00:00 | |
just for the record... | 01/01/70 00:00 | |
Typy | 01/01/70 00:00 | |
Don't forget to look at the "8052 FAQs"! | 01/01/70 00:00 | |
Instead of using SETB and CLR, to ... | 01/01/70 00:00 | |
Re:Blinking | 01/01/70 00:00 | |
I looked | 01/01/70 00:00 | |
Good luck! | 01/01/70 00:00 | |
Unlock pro. bits | 01/01/70 00:00 | |
you need to erase the chip... | 01/01/70 00:00 | |
re: erase | 01/01/70 00:00 | |
the protoboard... | 01/01/70 00:00 | |
AVR - start with what you know! | 01/01/70 00:00 | |
He need not to leave us, if everything he... | 01/01/70 00:00 | |
Re:Hasn't been scored![]() | 01/01/70 00:00 |