Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - atmega8-16pu pdip

(you are viewing a thread; or go back to list of threads)

atmega8-16pu pdip (by marzook)
hello
can u help me with the uart?
its can't send or recv from the pc
Fri Jul 9 2021, 14:06:56, download attachment 1.ld
(no subject) (by Paulino Calubert)
If in simulation you have to click on the variable you want to act on, and have the uart terminal open to be able to visualize the change.

si en simulación tienes que picar en cima de la variable que quieres actuar, y tener abierto el terminar uart para poder visualizar el cambio.
Sun Jul 11 2021, 10:48:39
atmega8-16pu pdip (by marzook)
when i download the file(1.ld) to the board
its did not work!!!!!!
Tue Jul 13 2021, 20:32:04
(no subject) (by Paulino calubert)
I tested your program and in LDMicro with the simulation It works with the PC, this chic does not exist in LDMicro you can tell if it is okay

yo probé tu programa y en LDMicro con la simulación Funciona con el PC, este chic no existe en LDMicro puedes decir si esta bien
Wed Jul 14 2021, 04:37:55
(no subject) (by Calubert paulino)
You pass it in compilation .HEX
you have to see that when passing it to .HEX and the correct CPU exists in LDMicro

Lo pasas en copilacion .HEX
Mon Jul 19 2021, 07:03:33
its new... (by marzook)
its new....
when i download the hex file and run it...
i send char "A" or "B" the chip send me back : 0 in hex
Mon Jul 19 2021, 10:53:47
(no subject) (by Calubert paulino)
If it sends you 0 O 1 since the internal relay coils etc are open or closed circuit.
I do not understand what you send (A) if your 1.ld program does not have any variable with the name (A) to execute it.

Si te envia 0 O 1 ya que las bobinas rele interno etc son circuito abierto o cerrado.
No entiendo que le mandas (A) si tu programa 1.ld no tiene ninguna variable con el nombre (A) para ejecutarla.
Mon Jul 19 2021, 11:52:33
its new... (by marzook)
when i send the char "A" or "B" by the pc...
to the chip..

the chip must send me back to the pc the char : "A" or "B"
not 0 in hex
Tue Jul 20 2021, 03:45:29
(no subject) (by Calubert Paulino)
Put your program here to see and ratify if necessary.

Pon aqui tu Programa para ver y ratificar si es necesario.lo vere
Tue Jul 20 2021, 03:59:15
my program (by marzook)
i choose speed clock :16MHz and buodrate:9600
Tue Jul 20 2021, 08:03:23, download attachment 12.ld
(no subject) (by Calubert Paulino)
already tested works fine,
When you put the simulator you must click on your variable (HH) General Var and in the simulation value place 'A' put the quotes, 'A' = Red, 'B' = Green, 'C' Orange. To see it by PC You must open the UART terminal note that the UART simulator has to be the program running in simulation (let's say in the red lines,).
Note: everything I explain has to be done with the program in Simulation. And all the tests are done without .hex code if it does not work in the chic you must correct and fill in the configuration bits.
I would like you to inform me if everything went well.

ya probado funciona bien,
cuando pongas el simulador debes clicar en tu variable (HH) Var general y en valor de simulación coloca 'A' pon las comillas, 'A'=Rojo, 'B'=Verde, 'C' Naranja. para verlo por PC Debes de abrir el terminar UART date cuenta que el simulador UART tiene que estar el programa corriendo en simulación (digamos en las líneas rojas,).
Nota: todo lo que explico se tiene que hacer con el programa en Simulación. Y todas las pruebas están hechas sin codigo .hex si no funciona en el chic debes corregir y rellenarlos bits de configuración.
Tue Jul 20 2021, 12:44:25, download attachment 12.ld
atmega8-16pu pdip (by marzook)
i have compile the u'r 12.ld and download it to the chip
and .... its not work
what do u mean configuration bits.... can u help in this...
Tue Jul 20 2021, 13:43:45
(no subject) (by Calubert Paulino)
The AVRs have to configure the bits, however in the PICs, when choosing the Pic, the bits are already configured.
1st Configuration (MCU parameters is where you put the baud, uart, frequency, etc.).
2nd fill in the BITS box of Configuration example (0x3EFF23E4)
You can try with this configuration I don't know if it will work for you since this is the one I use for atmega2560.

Note: in the simulator it works without the configuration bits of the cpu. but to record in .hex you need the configuration of the cpu, if it is not configured it may work for you but you will always have errors.

I put you a link is from the pic but you also have it for AVr.
https://github.com/LDmicro/LDmicro/wiki/PIC-Configuration-Bits

Los AVR se tienen que configurar los bit, sin embargo en los PIC ya al elegir el Pic ya se configuran los bit.
1º Configuración (MCU parámetros es donde se pone los baudio, uart,frecuencia, etc.).
2º rellenar la casilla BITS de Configuración ejemplo(0x3EFF23E4)
puedes probar con esta configuración no se si te funcionara ya que esta es la que yo uso para atmega2560.

Nota: en el simulador funciona sin los bits de configuración de la cpu. pero para grabar en .hex se necesitan la configuración de la cpu, si no se configura puede ser que te funcione pero siempre tendrás erratas.

te pongo enlace es de las pic pero también lo tienes para AVr.

https://github.com/LDmicro/LDmicro/wiki/PIC-Configuration-Bits
Tue Jul 20 2021, 14:18:35
(no subject) (by Calubert Paulino)
This link is an example of how to use receive issue a timer but you can modify it to your liking or to see how it works.

Este en lace es un ejemplo de como hacer por uar recibir emitir un cronometro pero lo puedes modificar a tu gusto o para ver el funcionamiento.

https://github.com/LDmicro/LDmicro/wiki/Stopwatch1-over-UART
Tue Jul 20 2021, 14:32:52
its new... (by marzook)
i successssssssssss.... thanks
its fuse bits...
the low is:0xFF and the high is :0xC9
Tue Jul 20 2021, 14:51:09
(no subject) (by Calubert Paulino)
I did not understand what you mean, it made him work

No entendí lo que se refiere, le hizo funcionar
Tue Jul 20 2021, 15:01:42
atmega8-16pu pdip (by marzook)
yes its work
Tue Jul 20 2021, 17:15:58
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):