Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20562

BASCOM-AVR : BASCOM TERMINAL emulator don't see Attiny2313 messages (on t : NEWTOPIC

$
0
0
Hello My hardware : Attiny2313 and 10 Mhz external quartz (work fine) USB programmer USBASP (work fine) Converter USB to TTL (with PL2303HX chip) Work fine when i by pass rx-tx ______________________________________________________________ My code : ' Cet exemple simplissime fait clignotter une led ' La led est connectée entre le portD4 et la masse avec une R de +/- 300ohms '---------------------------------------------------------------------------- $regfile = "Attiny2313.dat" ' type de processeur $crystal = 10000000 ' clock 10Mhz $hwstack = 32 ' stack pour interruptions $swstack = 32 ' stack pour les appels de fonctions $framesize = 32 ' heap pour les variables locales $prog &HFF , &HFF , &HDF , &HFF ' generation des fuses (enlevé diviseur par 8 et mis qurtz 10 Mhz). $baud = 9600 Config Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0 Config Pind.4 = Output ' Le portd D.4 est configuré pour des sorties Led Alias Portd.4 ' Alias, un "surnom" pour le portd.4 Do ' allumer la led Set Led ' attendre 3 ms Waitms 3 ' éteindre la led Reset Led ' attendre 40 ms Waitms 40 Print "SONY REMOTE DECODER" 'print some output to rx Loop _______________________________________________________________________________ My connections : (RXD) PD0 (pin 2) Attiny2313 to RX (converter USB/TTL) (TXD) PD1 (pin 3) Attiny2313 to TX (converter USB/TTL) GND Attiny2313 to GND (converter USB/TTL) ___________________________________________________________________________________ The led on port D.4 is blinking The traffic led on my converter USB/TTL is blinking but my terminal emulator see nothing ! Have you some idea ? Yves [b:bdd271956c][color=red:bdd271956c](BASCOM-AVR version : 2.0.7.5 , Latest : 2.0.7.6 )[/b:bdd271956c][/color:bdd271956c]

Viewing all articles
Browse latest Browse all 20562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>