Problem z czytaniem stanu w AVR

Witam! Napisalem program w Bascomie na 2313 ktory bada stany na wejsciach (wszystkie piny portu D) i odpowiednio zapala diode. Jednak mimo zmiany stanow i tak procek odczytuje je jako niskie.. Co z tym zrobic?

Pozdroo Karol

Config Portb = Output Set Portb.7 'ziel Wait 1 Reset Portb.7 Set Portb.5 'pom Wait 1 Reset Portb.5 Set Portb.6 'czerw Wait 1 Reset Portb.6

Set Portb.7 Waitms 200 Reset Portb.7

Do

Set Portd.0 If Portd.0 = 1 Then Set Portb.7 Wait 1 Reset Portb.7 Waitms 200 Else Set Portb.7 Waitms 200 Reset Portb.7 Waitms 200 End If

Reply to
Bizon
Loading thread data ...
Reply to
Marek Dzwonnik

Zapewne coś w rodzaju

if Pind.7 ...

Tnij cytaty, poprosimy. I odpowiadaj pod cytatem.

Reply to
Marcin Stanisz

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.