Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
Hi every one!
I have bought the FRDM-KL25Z board wich cames with MKL25Z128VLK4 microcontroller, and since then I have tried to write an simple asm code to write something on GPIO port. I'm using the Keil uVision IDE, and the OPEN SDA debugger that comes on board. First of all I need to enable...
I discovered the problem. It was that on setup when openning the serial port I was calling GetCommState() function before SetCommState(), so it was overwriting the DCB structure configuration, setting a wrong baud rate value. I fix it and now it's working wonderfully!
Hi,
I'm have been trying to write an code in C++ by using the Win32 API to communicate through the RS232 serial port with equipment. It's a simplex communication (only the equipment sends data in blocks of 289 bytes). I'm using an dedicated thread to read the serial port. Firstly I tried to use...
Try don't use float math with this microcontroller. It takes a lot of processing (the PIC18 architeture has only 8 bits integer multiplication, addition and subtraction).
Re: AVR addition problem
I'm sorry, I forgot the addiction by 6:
;R16 and R17 are bcd digits
add R16,R17 ;Binary adition betwen R16 and R17
brhc No_HalfCarry
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;BCD Adjust
ldi R18,0x06 ;
add R16,R18 ;Add 1 to high nibble
...
Re: AVR addition problem
You can use the Half Carry to do this. Here an simple code:
;R16 and R17 are bcd digits
add R16,R17 ;Binary adition betwen R16 and R17
brhc No_HalfCarry
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;BCD Adjust
andi R16,0xF0 ;Clear the low nibble
ldi R18,0x10 ;
add R16,R18...
Just rename the .bin file to .mmc
- - - Updated - - -
You will need an external RAM, because the AT89C51 has only 128 bytes of internal general purpose RAM, and you need 512 bytes to read/write one sector.
Use a 64KB external RAM and you will be abble to write and read an entire cluster of...
Instead they say, isn't very diffcult to do this in assembly. It's only displayed seconds and minutes? If yes, all you need to do is use the timer1 to generate an interruption every 5 mili seconds.
You will use this timer to scan the displays (to ensure that you will not see the displays...
Re: 89S51/52 prigrammer.
Did you load the firmware of AT89C2051? You will need another programmer to do that (parallel programmer if you use AT89C2051, or ISP programmer if you use AT89S2051).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.