A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
Hello,
I've a problem with my programmer!
I'm using a jdm programmer and ic-prog v1.05A.
I can programming 16F84 and 16F877 without any problem. I try to programming 18F458 and
12F675 but I don't programming them :(
could you tell me what I am doing now?
thanks for your advices
sory for my english
CNT TEK.
| |
|
|
|
>
I'm using a jdm programmer and ic-prog v1.05A.
> I try to programming 18F458 and 12F675 but I don't
programming them
1. Does
that version of ic-prog support the chip types you are trying to
program?
2. Do
you pull the PGM pin low (assuming you use HVP)?
Wouter van Ooijen |
|
Well the 12F6x chips require the MCLR to be held high prior to VCC coming up, something that the JDM programmer doesn't do (it's powered from the RS232 port, both the VCC and MCLR are hot when you plug in the programmer). My guess is the 18F chip is similar. The 16F84 chip does not make this requirement. Now having said all that, I have been able to program the 12F6x chips with the JDM style programmer (olimex) and ICProg software. The caveat is don't use the internal oscillator (some one else suggested not tying MCLR high internally allowing that pin to be I/O) on the chip. It seems that when the chip is programmed to run on the internal oscillator it starts running as soon as you plug the chip/programmer/cable into the RS232 port and that prevents the chip from being programmed. Or at least that's my experience with the 12F6x chips. I have successfully overrided this by putting a 9vdc on the MCLR prior to pluggin the RS232 into the programmer, then unpluggin the 9vdc as soon as I hit the program button, effectively reviving all of my chips. Regards, John Remington. --- cnt <> wrote: --------------------------------- Hello,I've a problem with my programmer!I'm using a jdm programmer and ic-prog v1.05A.I can programming 16F84 and 16F877 without any problem. I try to programming 18F458 and 12F675 but I don't programming them :(could you tell me what I am doing now?thanks for your advicessory for my englishCNT TEK. ____________________________________________________________________________ Türkiye'nin en samimi arkadaş arama servisi ile hayatınıza renk katın! arkadasim.mynet.com Yahoo! Groups Sponsor ADVERTISEMENT to unsubscribe, go to http://www.yahoogroups.com and follow the instructions Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __________________________________ |
|
|
|
> Well the 12F6x chips require the MCLR to be held high prior to VCC > coming up, ... My guess is the 18F chip is similar. So far this is only required for chips that can configure the /MCLR pin as input, and in my experience you can get away with the old (Vcc-then-Vpp) sequence as long as you don't actually configure the /MCLR pin as input. > The caveat > is don't use the internal oscillator ... That points to another problem: the programmer does not rise /MCLR to Vpp fast enough. As the rise time is specified in clock cycles this won't be much of a problem when configured for a crystal and no crystal is connected, but is becomes a problem whith either the internal osc or when a crystal is connected. I remember that my first programmer (some almost-no-parts serial port variant) could do ICSP, but only when I removed the crystal during programming. But of course the best advice is: get a real programmer... (My Wisp628 kit is less than $30 including S/H) Wouter van Ooijen -- ------------------------------------------- Van Ooijen Technische Informatica: www.voti.nl consultancy, development, PICmicro products |
|
Hi, I am setting up motor control bu using PIC17c756a. The setting will be as follows: 1. User enter the desired speed and the speed will be sent to PIC MCU. Then, from the speed received, the PMW duty cycle will be changed accordingly. (just like Stve Bowling's article) 2. I used the function OPENPWM1(0xff); //for 10 bit resolution SetDCPWM1(pwm); //pwm according to speed 3. I declared the pwm as unsigned int pwm 4. Then when I change the speed which call pwm= 255( 8 bit number) everything works ok. 5. When I changed speed which call pwm = 1023 , the motor will run at this pwm value and will ignore any changes in speed. 6. So seems to me that although I set the PWM to be 10 bit resolution, it can only take 8 bit value of pwm. Then, if it takes pwm value of 10 bit (1023 for example), that will be the last pwm value and it cannot be changed anymore.. I really need help if anybody can give advise on this setting of PWM to 10 bit resolution. By the way, I am using MPLAB17 IDE. thanks a lot rashid __________________________________ |