Tag: Microchip Studio
-
How to use S109AFTG Microstep Driver with ATmega328PB Programmed using Microchip Studio
When I opened the case. I found a PCB which is screwed to a big heatsink. I unscrewed the bolts and saw that there is S109AFTG. The IC is sandwiched between the PCB and the heatsink. A small aluminum block is also used for heat transfer between the IC and the heatsink. It has a…
-
How to use DS1307 RTC with ATmega328PB via I2C in Microchip Studio
The DS1307 Real Time Clock uses I2c communication lines to connect with the microcontroller. I2C uses two lines commonly known as Serial Data/Address or SDA and Serial Clock Line or SCL. The two lines SDA and SCL are standardised and they are implemented using either an open collector or open drain configuration. What this means…
-
How to use UART Receive complete ISR of ATmega328PB using microchip studio
When you enable the communication using the UART. You have the flexibility to either use the Polling or Interrupt method to continue with your programming. Polling halts the execution of the program and waits for the UART peripheral to receive something so that program execution must continue. But it eats a lot of the computing…
-
How to add USBASP as External Tool in Microchip studio
Download microchip studio from here https://www.microchip.com/en-us/tools-resources/develop/microchip-studi Install the program. I use USBASP to program AVR ATmega328pb. Go to Tools > External Tools > ADD Command: location of avrdude Arguments: Check the Use Output window to be able to see the output of the avrdude inside the microchip studio terminal.