Skip to main content

Questions tagged [icsp]

ICSP is an acronym for in-circuit serial programming. It refers to the ability to reprogram a microcontroller or other reprogrammable device while still in place within a circuit. That is in contrast to devices where the part must be physically removed for reprogramming.

Filter by
Sorted by
Tagged with
0 votes
1 answer
28 views

Move PGEC2/PGED2 to PGEC1/PGED1 on PIC32MX

I have a board with PIC32MX795F512L. The board icsp connector is connected to PGEC1 (pin 24) and PGED1 (pin 25). I accidentaly flashed a hex bootloader (i don't have the source code) used for another ...
Isacco's user avatar
  • 87
0 votes
1 answer
35 views

Why did fuse bits successfully reset using ICSP and USBASP programmer?

I read a lot about fuse bits in AVR microcontrollers and everyone says that fuse bits can be reset by using high-voltage programmer only, they can't be reset via UART<->ICSP. So, I've received ...
Alexander Perechnev's user avatar
1 vote
1 answer
85 views

Problem in programming a Freescale MCU (MCR908JK1)

I am trying to program/read/erase an MCU MC68HRC908JK1 (marked MCR908JK1 and the logo of Freescale Co.) which is soldered on an industrial electronic card. on the other hand, I have a universal ...
pooya's user avatar
  • 61
3 votes
1 answer
255 views

Why is Vdd connected to GND?

I am trying to build a JDM programmer for PIC. I looked at many circuit diagrams. During my analysis one thing I noted is that on most of the circuit diagrams the Vdd of PIC is connected to the GND of ...
shafeeq's user avatar
  • 133
2 votes
0 answers
83 views

PIC Microcontroller And Dataman Connection Problem

I'm working on my first project with PIC18F4620. I'm using Dataman 48pro2C programmer and it's software. I'm using 5 pin header to connect the microcontroller to the programmer. The pins are VPP, GND, ...
Line Follower's user avatar
0 votes
1 answer
324 views

PIC16F886 Low Voltage Mode

I want to program a pic microcontroller, specifically, the PIC16F886. I am not experienced with programming PIC microcontrollers, however, after searching, I was able to find that you can program this ...
user1584421's user avatar
  • 1,369
2 votes
1 answer
221 views

Possible to program a PIC18F over ICSP without serial clock?

I'm playing with a device to see if I can program the PIC with my own code. There is a header and I've traced the pins to the PIC18F, but I notice there is no pin on the header that corresponds to the ...
K_T's user avatar
  • 185
1 vote
0 answers
79 views

How would I connect to these ICSP pins and what is the purpose of the transistor?

I have an old tire pressure monitoring system and was hoping the PIC16F886 in it doesn't have the code protect bit set so that I can modify the behavior of it (namely turn off the beeping from it in ...
K_T's user avatar
  • 185
1 vote
0 answers
78 views

Limiting negative peak voltage on ICSP Data lines to less than -0.3V limit under 8kV negative ESD test

I am doing ESD simulation using LTSpice for 8kV Negative tests on PGEC & PGED Data lines of PICSP programming port. am using PIC24FJ256GB406 MCU. This specifies absolute max negative voltage to -...
GGRUK's user avatar
  • 29
0 votes
2 answers
264 views

Invert Avrdude signal for Reset pin

Good day all, I have a bit of a pickle on hand. I have a project where we would like to use ICSP to program an atmega328p. We can do this quite easily using Avrdude with a custom config file, however, ...
TheMAX135's user avatar
  • 147
0 votes
1 answer
649 views

Why 10-pin and 6-pin ISP?

I have another curiosity question: Why is there a 10-pin AVR ISP connector and a 6-pin version? It seems that the only difference is that the 10-pin version uses the extra pins for a heap more ground ...
Artichoke's user avatar
  • 447
1 vote
1 answer
261 views

Changing Bootloader settings using HEX file in atmega328P

I am using atmega328P IC in my project. Currently my process to upload a code is to burn the bootloader according to my requirements and then upload using programmer USBasp . Now from what I read is ...
dharmikP's user avatar
  • 525
0 votes
2 answers
721 views

ICSP / ISP issue when programming ATmega328P

I've designed a custom PCB that I'm trying to program through ICSP using AVRISP mkII and I've run into some issues. I'm using Arduino IDE for programming, but I don't think this is relevant. The IDE ...
Cezerb's user avatar
  • 43
2 votes
4 answers
398 views

Why are male pins used for in circuit serial programming?

In most boards, the ICSP (in circuit serial programming) pins are of the male type. Is there any reason, guideline, standard or best practice that recommends this? If not I would like to use female ...
Sujoy Bhattacharya's user avatar
0 votes
0 answers
82 views

Programming Arduino Nano through Arduino UNO

I am trying to Program arduino Nano using ICSP but the problem is uploaded program only works as longs as Nano is connected to UNO. Here is what i am trying. Upload arduinoISP program in UNO. Make ...
Nawnit Sen's user avatar
0 votes
1 answer
442 views

ICSP + FTDI for ATMega328P

I want to have this "debug" header with 10 pins (I could probably get away with 9) and I am wondering if the DTR pin is ok to be filtered by a capacitor for ICSP. This is how I am sourcing these pins:...
bem22's user avatar
  • 360
2 votes
1 answer
390 views

ATMega328p won't communicate on ICSP

I am in the process of designing and prototyping up a circuit using the ATMega328P in a MLF package. It's the first time I've worked with the '328P on my own circuit, and the first time I've worked ...
Majenko's user avatar
  • 56.3k
0 votes
1 answer
257 views

ICSP (pickit2) on 3.3v dsPIC33

I'm using a dsPIC33FJ64MC202 (@3.3V) for some project. I normally program my PIC projects with MPLABX through a PICkit 2, but I never tried using it on a 3.3V chip. Will it work? I know the target ...
Iaka Noe's user avatar
  • 175
0 votes
0 answers
176 views

atmega328p is not detecting on USBasp programmer after verify 0 error?

I was trying to burn my atmega328p board which is designed for some wireless application. The ICs atmega328p, esp8266 12f, and ADM7171 are using the same Vcc. Here the Power supply is connected to ...
mcv's user avatar
  • 35
0 votes
1 answer
233 views

What could cause a microcontroller on a board not to accept programming?

EDIT: To summarise - when I take the microcontroller off the board, it works. But when I leave it on the board and try to program it, I cannot. I have designed a PCB and had it fabricated. This PCB ...
Sod Almighty's user avatar
  • 1,455
1 vote
1 answer
581 views

How can I isolate an ATTiny from an I2C slave so ICSP will work?

I'm building a small circuit to blink some LEDs with an ATTiny. I'm planning to use a 16-channel LED driver and talking to it with an ATTiny over I2C. I'd like to use a SMD ATTiny and add some test ...
D. Patrick's user avatar
0 votes
1 answer
299 views

ATtiny icsp pins dual purpose

I am using an ATtiny88 in a pcb design. It is directly driving a LED matrix. I am only driving half bytes at a time, so the max current limit will be followed. It is my understanding that I can dual ...
Kyle Hunter's user avatar
2 votes
2 answers
3k views

JTAG, SWD, EDBG, ICSP, ISP terms

JTAG, SWD, EDBG, ICSP, ISP . Can someone simply explain their differences. For example if EDBG debugger can ALSO program flash, why Arduino boards have both ISP and EDBG ? http://www.armlearning....
T. Rex's user avatar
  • 23
0 votes
1 answer
160 views

How do I maintain ICSP functionality?

I'm a novice hobbyist building a trivial circuit where an ATTiny 85 controls an RGB LED. In addition to the three PWM outputs, I have 2 inputs. The first input is a potentiometer I'm using to set ...
D. Patrick's user avatar
0 votes
1 answer
1k views

Clip type for in-system programming (SOIC8 vs DIP8)

Updated: What clip can I use to connect to this [specsheet] SPI flash chip in a DIP8 package? note: this picture is of a motherboard that belongs to someone else, but mine has the same manufacturer,...
Rob's user avatar
  • 291
2 votes
2 answers
377 views

ICSP + SST25VF016B + ATmega2560 Problem

We have designed a board that uses an ATMega2560 and wanted to have the option to do remote firmware updates (it has a Sim800C as well for getting the firmware files). Therefore we've added an ...
Lefteris's user avatar
  • 147
2 votes
1 answer
161 views

Forgot ICSP / in-circuit interfacing of pins on Atmega328P in TQFP-32 package

I am having an issue due to my own stupidity: I designed a PCB with the good old Atmega328P in TQFP-32 package. I broke out the pins for UART in order to be able to Arduino-flash it (beginners/...
Stef's user avatar
  • 21
0 votes
1 answer
1k views

ESP8266 ICSP design: which circuit design guidelines to avoid fails/damages?

I'm working on a project which is all on breadboard right now. I'm close to final version, so I'm planning to design PCB for the release (not commercial use, just for some friends of mine). The ...
Noisemaker's user avatar
3 votes
1 answer
348 views

How can I isolate voltage reference from ICSPCLK programmer output

In my application I use PIC16F676 microcontroler with the LM282 (https://www.onsemi.com/pub/Collateral/LM285-D.PDF) external voltage reference (for A/D converter) connected to the RA1 pin. This pin is ...
J. Doe's user avatar
  • 33
0 votes
2 answers
522 views

Will this 3v3 level shift for arduino->avr programmer work

I'm trying to program an avr in a circuit that has other components on the same SPI lines that would be damaged with > 3.3 volt logic. I figured I could just use an arduino (5v logic) with a level ...
J Halcres's user avatar
  • 155
1 vote
1 answer
860 views

Writing hex to several microcontrollers at the same time via ICSP

Is it possible to write a hex code to several microcontrollers via one ICSP and one program on PC at the same time ? More specifically : I'm looking to program 10 PICs at the same time from the same ...
Mohamed Sayed's user avatar
0 votes
2 answers
387 views

Can I use pin as both an ICSP pin and as pwm output?

I have a microcontroller with 3 PWM pins, and I'd like to use those pins to drive the leds inside an analog RGB led. Problem is that one of the pins is also the MOSI pin and I would like to re-...
J Halcres's user avatar
  • 155
2 votes
3 answers
3k views

What's the risk of leaving VPP/MCLR floating?

In the microchip PM3 ICSP design guide, this diagram is shown to demonstrate a typical implementation of ICSP: Here, the MCLR/VPP pin is pulled to 5V during normal ...
iFreilicht's user avatar
1 vote
2 answers
439 views

Keeping Vpp off other pins in PIC MCU

I have the circuit below using PIC16F627a, which should support ICSP (drawn in autocad instead of built in editor). IO pins which are not relevant to my question are omitted. Outputs RB5 and RB6 have ...
Bart's user avatar
  • 885
2 votes
2 answers
695 views

PIC32MX ICSP wiring

I was looking to use a PIC32MX series microcontroller on a project. It is currently in the mail, but I thought I would try to understand the wiring for power and programming before it arrived. I had ...
askerofquestions100000000's user avatar
0 votes
1 answer
375 views

Simple Servo Control Issues with PIC and ICSP

simulate this circuit – Schematic created using CircuitLab I have a project in which I am controlling/trying to control a Carson CMS-1 servo using a PIC. I have a board set up with a 7.5v 1A ...
Ritchie's user avatar
2 votes
1 answer
380 views

Is it possible to use an opamp to generate 13V VPP for ICSP?

I have used a 34063 DC boost converter to generate a 13V VPP voltage for a PIC ICSP programmer, but would it be possible to use an opamp instead? The circuit pictured below seems to generate 13V (...
Charlie Skilbeck's user avatar
0 votes
1 answer
672 views

ICSP CLK/DAT & my 2 buttons

I have a PIC16F684 with buttons connected to PORTA:0 & PORTA:1 which are also used for ICSP DAT & CLK. The ICSP signals are coming from a PIC programmer which I've built using an Arduino. The ...
Charlie Skilbeck's user avatar
1 vote
1 answer
893 views

Programming PIC16F88

I've built a simple PIC programmer which works OK on a PIC16F628 but fails on a PIC16F88: I've checked the VPP voltage and it's within spec (although I had to substitute a 1.8K for the 1.6K to get it ...
Charlie Skilbeck's user avatar
2 votes
1 answer
235 views

Factory resetting a PIC16F628

I can't get my home brew pic programmer to execute the factory reset sequence correctly (or rather, it's not resetting the device and I can't work out what I'm doing wrong). Other functions such as ...
Charlie Skilbeck's user avatar
0 votes
1 answer
1k views

ICSP - how to isolate a pin

I have jerry rigged a PIC programmer but I need to use the PGC/PGD pins as part of the actual circuit. I'd like to be able to flash the PIC without physically swapping it between the circuit and the ...
Charlie Skilbeck's user avatar
2 votes
1 answer
393 views

Detecting when AVR ICSP header has a cable connected

I have a bunch of Atmega16A MCUs laying around so I want to use them with an ESP8266 to relay temperature and such in each room of my home to a server. The thing is, if I need to update the firmware ...
Funkyguy's user avatar
  • 3,598
3 votes
3 answers
2k views

Programming a microcontroller with another microcontroller

I'm looking into using a PIC24FJ256GB106 to program three other of the same microcontroller. So this is how it should work: The program is sent across through serial to the master/programming PIC ...
Michael Jennings's user avatar
0 votes
1 answer
2k views

Atmega328p voltage connections confusion

I am designing a board relying on atmega328p. In order to be able to load the arduino bootloader I added ICSP pins and connected them accordingly. Pin number 2 is VCC pin and I connected it to VCC pin ...
reflection's user avatar
1 vote
2 answers
1k views

How to program via ICSP when chip is in-circuit with interfering chips?

My Circuit is: USBTinyISP <-usi/icsp-> ATTiny85 <-usi/i2c-> MCP4725. That is, the USI pins used to program the t85 are also used for i2c in the final circuit. When I try to flash-program the ...
user2755841's user avatar
0 votes
2 answers
554 views

ICSP design problem on PIC16F628A

I just added the ICSP port on this schematic here however, when the programmer powers the circuit from the ICSP (pin1 +5V, pin6 GND) it also polarizes the relay and the bs170. If for some reason the ...
Gianluca Ghettini's user avatar
2 votes
1 answer
1k views

Maximum length of Atmel AVR ISP ribbon cable?

I recently picked up a cheap USB based ISP (in-system programmer) for Atmel AVRs. There are two variants of the programming socket that are used with these devices, a 10-pin and a 6-pin. ...
Donald Burr's user avatar
3 votes
5 answers
2k views

PIC/ICSP - Protect circuit from VPP voltage?

I'm more of a software engineer, but I've done a fair amount of toying with components and microcontrollers. That said, this has me concerned, and my searches so far seem to indicate that no one's ...
DigitalMan's user avatar
1 vote
1 answer
1k views

Why erasing my PIC with PICKit2v2 doesn't work?

Below you can see the output of PICKit2V2 after clicking the Erase button: As you can see above, all the memory addresses (I scrolled also) are equal to 3FFF. ...
Ebrahim Ghasemi's user avatar
11 votes
4 answers
3k views

ICSP or Pre-Programmed Microcontroller

I've designed a PCB for small scale production; currently I'm hand soldering them in batches of 20 at a time. This PCB uses an ATMEGA168 microcontroller which I program before soldering to the board - ...
edcs's user avatar
  • 333