Continue to Site

Welcome to EDAboard.com

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.

Actual Process of Programming a microcontroller ??

Status
Not open for further replies.

nikhilsigma

Full Member level 2
Joined
Jun 19, 2010
Messages
142
Helped
17
Reputation
34
Reaction score
16
Trophy points
1,298
Location
Delhi, India
Activity points
2,584
How actually the programming of microcontroller happens ??

I have an USBASP programmer for ATMEGA32 , it uses some MOSI and MISO pins...but i want to know the actual working of this programmer.
what data it sends ?
why it uses MOSI and MISO pins ??
and how to program any microcontroller (BASIC CONCEPT) ??

any good references and reading material is highly appreciated.. :)
 

Check out the datasheet of AtMega32, you can find the serial programming described well.

USBASP is an emulated usb slave designed to program the AVR Chips.
 

so does USBasp also does Serial data transfer, but instead of using a serial port of computer it uses USB port ?? am i right ??

also i had done serial data transfer between my PC and ATmega32, but my microcontroller was programmed at that time to receive data from PC.
so is Programming a microcontroller somewhat similar to that ??
 

I am not familiar with USBasp but I think you have misunderstood.

USBasp uses
1. USB port to communicate with the PC and
2. serial data transfer (not UART, it is SPI) to ATmega32.

U could have used serial port of computer (UART) to transfer the data's. Here USBasp using SPI to transfer the data to write into the flash memory of ATmega32

---------- Post added at 16:59 ---------- Previous post was at 16:58 ----------

There are some chips supports the flash programming through UART too.
 
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top