Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .org 0x00
- LJMP INIT; // inicjalizacja
- .org 0x03 //przerwanie zewnętrzne - początek procedury
- LJMP EXTERNAL_IRQ
- .org 0x23 // przerwanie z portu szeregowego - początek procedury
- LJMP SERIAL_IRQ
- .org 0x1000 // ciało programu
- INIT
- SETB ES //zezwolenie na przerwanie z portu szeregowego
- SETB EA // ogólnie włączenie obsługi przerwań
- CLR SM0
- SETB SM1 // ustawienie transmisji szeregowej na tryb 1 : asynchroniczna 8 bitów
- SETB SM2 // podobno warto przy asynchronicznej
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement