In-circuit programming (ICSP) is very usefull feature. It allows you to program PIC easily in circuit (as you said), by controlling RB7, RB6, MCLR (+GND and maybe VDD). You only need to know the sequence of activation if you made your own programmer! (I mean totally new design). If you build let's say JDM, then there is no reason to learn how it works, you just plug it in and press program button.YAN-1 said:I have started reading about ways of PIC programming just a short while ago but I think I am a little lost. Now the way I see it, there is something called in-circuit programming. So if I am interested in sending the PICs new programs WHILE THEY ARE ALREADY PLACED IN THEIR EMBEDDED SYSTEM, I can send the new hex file serially by controlling the RB6, RB7, and master clear pins? How do I do that or how do I control the sequence of voltages on these pins because I read a tutorial and it said that when the PIC is being programmed, the master clear is set to low and then quickly to 12 volts and so on. How do I manage that sequence? And when do I need a boot loader?! Do I need it for in-circuit programming or for just programming the PIC in a certain circuit without a programmer and then placing the PIC in its circuit? I know these are lots of questions but I got really confused and I would appreciate your help.
Yeah, it was like >1 second :lol:Someone Electro said:jay you ware just a cuple of seconds faster than me! (check the time stamp on top of the posts)
LOL I want to be first :lol: .Someone Electro said:Why didnt you write some more so i cod be first
You are a little confused with this...YAN-1 said:I see. But for my project (a pentium 4 on a mother board is communicating with PICs), I am interested in sending and receiving data serially between the PICs and the CPU. Now this has to be done by connecting the serial cable to the RX and TX pins of the PIC, right? And I am ALSO interested in allowing the CPU to send the PICs new programs during their operation (ICSP). So in order to do this, I have to connect the serial cable to the RB6, RB7, and master clear pins?! So do I need two serial ports or what? And when programming the PICs, I just send the .HEX file serially to the RB7 pin?
ok...YAN-1 said:Yeah I know that I need the MAX level shifter. But I am confused about the ICSP part. In my project, I need the PICs to be blank at first and then the pentium sends them their programs. So for that, I need a JDM programmer, right? And if the CPU has to send the PICs new programs ('update' their programs)over and over, it has to send the PICs the boot loader the first time as well? (of course, I don't know what a JDM is). And this JDM will take care of the required voltage sequences of the master clear, RB6, and RB7 pins, right? and it is connected via the serial port to the CPU, right?
I will be extremely grateful is you gave me a 'yes' or a 'no' for each of these questions with a short explanation in case of the 'no'.
Mine is better :twisted:Someone Electro said:ha now im the first. :twisted:
No it doesn't work that way... You always need additional SW running on that PC. But there are bootloaders that are using standart Hyperterminal to send HEX files (Microchips own bootloader). So you just program that PIC under windows, and later use Linuxs terminal to send new HEX files.YAN-1 said:Ok thanks. I would just appreciate it if someone answers my questions. I just came up with another one (don't hate me). Please keep in mind that the pentium 4 will be running linux and that i am not sure how the ICSP will be done now because Jay said i need a programming SW besides the JDM. I thought I will just have the pentium send the PICs the .hex files serially when it is doing ICSP.
Problem is there is no IDE for PICs that runs under linux. I recomend you to stick to ICSP mode for a while (bootloader requires special modification of your programs). There are many programmers available:YAN-1 said:Thanks Jay. I just saw your reply. I will read about this as much as I can and let you know when I have more questions. But please clarify the programming software that i will need becasue, as i mentioned, the cpu is running under linux and i am not sure how this will be done. can i assemble the programs i will need, save the .hex files on the hard disk, and then send them to the PICs in the ICSP mode or do i need a program like mplab installed on the motherboard hard disk? thanks.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?