Académique Documents
Professionnel Documents
Culture Documents
Interupt configuration
--------------------------------------------------------------------------------
IE= EA - - ES : ET1 EX1 ET0 EX0 =>ETx=timer; EXx interupt
at reset IE = 0xx0:0000
a-x : carry -> a<x no carry -> a>=x |=> carry -> a<x no carry a>=x
a+(-x): carry -> a>=x no carry -> a<x |=> no carry -> a<x carry a>=x
-------------------------------------------------------------------------------
PSW = 1 1 1 1 1 1 1 1
| | | | | | | |-> Parity
| | | | | | |---> Reserved, but you can use it
| | | | | |-----> OV
| | | |--|-------> Register Bank
| | |------------> F0
| |--------------> AC
|----------------> Carry
-------------------------------------------------------------------------------
SCON= 1 1 1 1 1 1 1 1
| | | | | | | |-> RI, receive flag
| | | | | | |---> TI, transmite finish flag
| | | | | |-----> RB8, receive bit 8 at modes 2&3, stop bit at mode 1,
-------------------------------------------------------------------------------
DOuble dptr is dpl=82H and dph=83H when AUXR1 (0A2H) bit 0 is 0, otherwise
dptr is dp1l=84H and dp1h=85H.
-------------------------------------------------------------------------------
WMPort = WM_USER+10 ( 1034 ) -> LParam=Port Number; Data pada WParam
WMCommMessage = WM_USER+11 ( 1035 ) -> Data pada WParam
Conector:Paralel
1.GND(20) 2.VCC(40) 3.Reset(9) 4.SCK(8) 5.MISO(7) 6.MOSI(6)