8535/Bascom: Dlaczego to nie dziala? :(

Plytko-kabelkologia dziala bez zarzutu; ma to byc pod MIDI; na wejscie podlaczam instrument MIDI, ktory na pewno transmituje... Ma sie jeno LED zaswiecic, jak cokolwiek w UARTcie sie pojawi...

----------------- '$sim

$regfile = "8535def.dat" $crystal = 8000000 $baud = 31250

Dim Rxflag As Bit Dim Rx As Byte Dim Tx As Byte Dim A As Byte '****** Przerwania On Urxc Rec_isr Enable Urxc Enable Interrupts

'****** Porty Config Portb = Output 'tu jest LED 'Uart - D0 Rx D1 Tx 'Config Portd = &B11111110 ' dawalem "z" i bez tego

'****** Program glowny Set Portb.0 'wygaszony LED Enable Serial 'Main loop Do nop Loop

'****** Procedury Rec_isr: Rx = Udr Rxflag = 1 Reset Portb.0 Return

----------------- W symulacji wychodzi ok, ale LED nie mrugnie nawet :(

Reply to
jh
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.