Hi
I'm new to using/programming MCU's and i have started with the pic12F683.
I also use assembly to programm the pic since i found the syntax for coding to be easy comapred to C.
The problem i got is to connect he 683 to a hc595 shift register and then to a HD44780 16X2 LCD display. I have been searching for an asembler demo for this setup but so far i have just found a page where the code is in C .
I have managed to connect the 683 to the shiftregister but the problem is that i can just send one bit at the time but to be able to use the LCD i need to be transfereing stuff like 0x20 (LED wakeup sequence) and other simmilar code.
My question is .. Does anyone have an example asm file or a link to a page witch have some code i can learn from .
Hi
I'm new to using/programming MCU's and i have started with the pic12F683.
I also use assembly to programm the pic since i found the syntax for coding to be easy comapred to C.
The problem i got is to connect he 683 to a hc595 shift register and then to a HD44780 16X2 LCD display. I have been searching for an asembler demo for this setup but so far i have just found a page where the code is in C .
I have managed to connect the 683 to the shiftregister but the problem is that i can just send one bit at the time but to be able to use the LCD i need to be transfereing stuff like 0x20 (LED wakeup sequence) and other simmilar code.
My question is .. Does anyone have an example asm file or a link to a page witch have some code i can learn from .
Thanks for the link , I have used that site myself but i haven't found the solution to the problem with the hc595. This page has what i need but the code is in C maybe someone can "translate" it to assembler or maybe post a link to a simmilar page with code written in assembly
Unfortunately, just translating C to ASM isn't all that easy. Parts of the program will depend entirely on the chip the original program was designed for, and the chip that is going to be programmed with ASM. It would be difficult for someone who has not used these particular chips to translate.
What you need is a compiler. When you write in C, it usually translates it to ASM when it's compiled, before programming the chip. By putting the C into a compiler, it will translate it to ASM. Keep in mind you may have to make several changes in order to make it work with your chip.
You may be able to run the code in MPLAB and have it translate it to ASM for you. I haven't done this myself, so I'm not sure if you can do that or not. Definitely worth a try, though.
i did choose the 683 due to the cost and the features it have .. I got the 683 just to learn more about mcu's .
The reason for the 74 chip was that i came across the page i mentioned and i wanted to see if i could get it to work , witch i'm sure i will if someone points me in the right direction
Just tested out that 2 wire link for the 16F84 -it works ok, so have just quicky modified the ports and tried it on the 12F683 and again it seem to work fine in simulation.
Just tested out that 2 wire link for the 16F84 -it works ok, so have just quicky modified the ports and tried it on the 12F683 and again it seem to work fine in simulation.
Thanks I will give it a try however on the page i linked to they used 2 wires connected to the 595 and one connected to the LCD (data/command) anyway i can try both of em
Thanks I will give it a try however on the page i linked to they used 2 wires connected to the 595 and one connected to the LCD (data/command) anyway i can try both of em
It sounds like you didn't put it in a loop. It executes it once, but then stops. Did you write the program in ASM, or did you use the C file? It may also be the watchdog timer--I've had a few issues with that before, too