DIY Electronics Message Board
Register  |   |   |  Latest Topics
 
 
 


Reply
  Author   Comment  
chiko

Registered:
Posts: 7
Reply with quote  #1 
I've noticed an issue when programming the 12f!840, mainly it's not supported.
"The programmer does not recognize the [12F1840] processor"

However it can be programmed, there are some cases where it fails to program and shows the following message

"The board is not responding
about to apply reset..."

This appears to have some relation to the which address is being written to last on the chip.

The following example breaks
:1000000000000000000000000000000000000000F0
:00000001FF

However writing to another address at the end of the chip appears to resolve the issue
:1000000000000000000000000000000000000000F0
:101FF00000000000000000000000000000000000E1
:00000001FF

I'm still examining further to see if there is any patterns in which lines do and don't work, i'm just sharing my results here if anyone else happens to be in a similar position, or has any additional information on to the cause of this issue.

Edit:

If the following statement is false then it will fail.
Last Address & 0x20 == 20

BAD:
0x00
0x10
0x40
0x50

GOOD:
0x20
0x30
0x60
0x70


Thanks
gid1

Registered:
Posts: 2
Reply with quote  #2 
Hello chiko, have you manage to figure out how to add the 12f1840 device to the K150 programmer?
Thanks. 
chiko

Registered:
Posts: 7
Reply with quote  #3 
Hey gid1,

Sorry about the late response, I was able to add the 12F1840 device to the K150 programmer i'll post the information here once I get home tonight.

It involved modifying the configuration file to add in the 12F1840, all the fuses may not be correctly set though.

Note the issue i was experiencing was with one particular machine running windows 7, the one that was running XP had no issues I haven't looked into much since my last post.

Thanks.
chiko

Registered:
Posts: 7
Reply with quote  #4 

Using DIYpack25ep i've added in the following in the chipdata.cid file

CHIPname=12F1840
INCLUDE=Y
KITSRUS.COM=8pin
EraseMode=2
FlashChip=Y
PowerSequence=Vpp2Vcc
ProgramDelay=60
ProgramFlag2=1
PanelSizing=1
CoreType=bit14_B
ROMsize=01000
EEPROMsize=00000100
FUSEblank=1fb4
CPwarn=N
CALword=N
BandGap=N
ICSPonly=N
ChipID=0460
LIST1 FUSE1 "WDT" "Disabled"=3Fe7 "Enabled"=3FFF
LIST2 FUSE1 "PWRTE" "Disabled"=3FFF "Enabled"=3FDF
LIST3 FUSE1 "MCLRE" "Enabled"=3FFF "Disabled"=3FBF
LIST4 FUSE1 "Code Protect" "Disabled"=3FFF "Enabled"=3F7F
LIST5 FUSE1 "CPD" "Disabled"=3FFF "Enabled"=3EFF
LIST6 FUSE1 "BODEN" "BODon SBODENoff"=39FF "BODrun SBODENoff"=3DFF "SBODEN=PCON"=3BFF "BODoff SBODENoff"=39FF
LIST7 FUSE1 "InEx Switch Over" "Enabled"=3FFF "Disabled"=2FFF
LIST8 FUSE1 "fail clock" "Enabled"=3FFF "Disabled"=1FFF
LIST9 FUSE1 "Oscillator" "EXTRC_CLKOUT"=3FFF "EXTRC_IO"=3FFE "INTRC_CLKOUT"=3FFD "INTRC_IO"=3FFC "EC"=3FFB "HS"=3FFA "XT"=3FF9 "LP"=3FF8
LIST10 FUSE1 "Clock Out" "Disable"=3fff "Enable"=37ff

The ChipID is not accurate and the fuses may not be accurate.

On the windows xp machine this is working fine, on windows 7 it complains it's not supported however it still programs it (with the issue mentioned in the original post here)

Let me know if you have any issues.

gid1

Registered:
Posts: 2
Reply with quote  #5 
chiko, Thanks a lot for the detailed response. I'm using also win XP, this is good for me [smile] .
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Thank you for visiting.