(you are viewing a thread; or go back to
list of threads)
serial in AT mega8 (by okulasi)
i have problem with my ATmega8 burn with firmware from serial.ld ...> compiled to serial.hex (originally sample from ldmicro)
see attachment
no subject (by simon)
Hi okulasi
post your ld program
serial in atmega8 (by okulasi)
hi simon
thank you for your response
the ladder program already in directory ldmicro/sample/serial.ld
see attchment
serial uart with atmega8 (by okulasi)
this is next trial for send analog via uart
The first problem
I use a 12Mhz crystal (12 Mhz in my opinion because I bought it new from the store) see the picture in the attachment.
ldmicro settings:
-12mhz crystal = (12.000000)
-cycle-10ms-100ms (I tried several times)
-baud = 2400-9600 (I tried several times)
settings in hyper terminal =
baudrate = fit / equal ldmicro settings (eg. ldmicro = 4800, hyper terminal = 4800)
results are:
the connection with the serial UART does not work.
TThe second problem
This is my experiment with adc atmega8, I do readings on the adc port and then sent via serial port. I run this program with hyper terminal.but adc port of Atmega8 as not to react .... I am using a potentiometer 10kOhm, I turned to the middle position of about ..... check Voltage = 2.5 volt.tetapi on hyper terminal display fixed 1023.
how to solve the problem....please
ladder program (by okulasi)
the ladder program test adc.ld(attchment)
fuse bit (by okulasi)
I searched on google
probably my fault in setting fuse bits
how to make the correct settings for the following applications:
MCU = ATmega 8
Crystal = 12mhz
cycle time= 10ms
thank,s
no subject (by simon)
hi okulasi
i tested your program "TEST ADC.ld" on atmega8 .
probably you have a new chip never programed before and this is the main problem . When you buy a new atmega , they have a default fuse bits set for 1mhz oscilator . I testet your ld program whit default fuse bits and is ok . You need to make sure to conect Avcc ( pin20 ) to +5vcc and Aref ( pin21 ) to +5vcc . I used for programing PonyProg .
Attached file is PonyProg fuse bits for atmega8 to use crystals from 4mhz to 16mhz .
Atention to Avcc and Aref.
no subject (by simon)
if you don't use ponyprog , i will try tomorow to send to you the avrprog fuse bits .
receive char over uart (by okulasi)
thanks simon
1.
fuse bit problem was ok .. your advice was right
now I can use the 12mhz crystal.
relationship with the hyper terminal is also ok
2.
ADC in avr with micro ld ok too ..
My mistake was not connecting pins 20 and 21 ..
thanks for the advice very useful
3 once more
I have a problem with receiving serial data(serial in)
See attached file.
in the hyper terminal I can not send serial data to the avr atmega8
no subject (by simon)
hi okulasi
Test this program .
char over uart (by okulasi)
hi, Simon
I tried ATMEGA 16 results were the same. can not send char via UART.
how to make the correct settings on atmega8/16 to use this function(receive char over UART)
(no subject) (by MGP)
I think there is nothing wrong with your LD program or Atmega.
Can you post your schematic on this forum, because i think that the hardware isn't correct.
(no subject) (by MGP)
Sorry, i have found your board schematic in your first post.
no subject (by simon)
okulasi you have this atach folder , i hope this helps .
serial.rar (by okulasi)
Thanks,simon
being tested..............
receive char over uart (by okulasi)
hi simon
I've tried your program .. result is the same, not work (from the hyper terminal can not send characters)
I tried to compile the program with BASCOM AVR as a comparison. I tried it on ATMega 8 the results is ok.With using HyperTerminal posible to transmit a character.(see attachment)
help me ... where is my fault
(no subject) (by haythem)
hello I have a problem with LDmicro it does not compile. when I do the pinning peak then I compile it shows that there is an error although the program is correct
no subject (by simon)
your mistake apear to be a bad name of input "Rmo" that probably should be "Rm0" . see atthaced files .
To haythem (by Rakesh)
in the very frist line you just wrote "Rmo" instead of "Rm0"
edit and compile.
enjoy
thanks
BOUD RATE (by SEGAR)
HI, I HAVE DOWNLOAD AND OPEN THE LDMICRO SOFTWARE THE VERSION 4.1.0 WHAT I NOTICE IS THAT THE SOME SETTING BOUTRATE IS 1900,2400,4800 ITS FIX APPEAR IN THE SETTING ICON , HOW TO CHANGE THE BOUDRATE SUITE TO PROGRAMMER SETTING AND DEVICE IN THE BOUDRATE ICON.
THANKS
(no subject) (by MGP)
You can only change the baudrate in the settings after you have used a UART instruction in your program.
Post a reply to this comment:
|