EmbeddedRelated.com

16F628 on-chip eeprom problem

Started by Vladimir M Skrbic in Piclist20 years ago 2 replies

Hello everyone, I'm new to the group and I'd like to ask a question. I've recently moved all my projects from 16F84 to 16F628...

Hello everyone, I'm new to the group and I'd like to ask a question. I've recently moved all my projects from 16F84 to 16F628 mcu's. Yesterday I've tried to write data to the internal (on-chip) eeprom of 16F628 using PicBasic Pro with little (or no ;) sucess. Would anyone care


16f628 internal oscillator

Started by hunt4it44 in Piclist21 years ago

I did a little experiment this past weekend playing with the 16f628a- 04 and its internal oscillator. On one breadboard I put 2...

I did a little experiment this past weekend playing with the 16f628a- 04 and its internal oscillator. On one breadboard I put 2 16f628's with identical clock programs that display on an LCD. The only difference between the 2 16f628's was I set one up to use the internal oscillator


PIC16F628 support in PICC Lite

Started by Jeff Cooper in Piclist21 years ago 3 replies

People: PICC Lite lists 16F627 but not 16F628 as a supported device. The include file, 16f6x.h has comments pertaining to...

People: PICC Lite lists 16F627 but not 16F628 as a supported device. The include file, 16f6x.h has comments pertaining to 16F628 and a #ifdef referencing a symbol called _16F628. Can I target the 16F628 and use its 2K of program memory or will they prevent that?


differences between 16f628 and 16f628a

Started by knalkeez in Piclist20 years ago 2 replies

Until now, I succesfully used 16f628's for my robot-projects. I use an el-cheapo parallel-programmer (SHAER) and use ...

Until now, I succesfully used 16f628's for my robot-projects. I use an el-cheapo parallel-programmer (SHAER) and use in-circuit-programming. So far so good. Yesterday I ordered 16f628A chips, 'cause they're a bit cheaper, and usually the 'A' stands for 'improved'. But after reading some a


Convert program code from 16F84 to 16F628??

Started by Shawn McClintock in Piclist21 years ago 2 replies

How hard would it be to port a program written for the 16F84 to a 16F628? Any big changes need made? Or can I just recompile with...

How hard would it be to port a program written for the 16F84 to a 16F628? Any big changes need made? Or can I just recompile with new processor selection and appropriate changes in code for device type? Shawn


ICD 2 support for 16F628?

Started by Dennis Clark in Piclist20 years ago 2 replies

Hi all, I've got an issue. My ICD-2 on MPLAB 6.60 says that the programmer won't support the 16F628. The MC website says it...

Hi all, I've got an issue. My ICD-2 on MPLAB 6.60 says that the programmer won't support the 16F628. The MC website says it will program it, but not debug it without an adapter. OK, since my IDE refuses to let me choose the ICD-2 as my programmer, it is obvious which way the w


assembler SPI on 16F628 to MAX7219

Started by Glen in Piclist21 years ago

I'm trying to write SPI Master code to send from a 16F628 to a MAX7219. Anybody got any example code? I've written what I think ...

I'm trying to write SPI Master code to send from a 16F628 to a MAX7219. Anybody got any example code? I've written what I think should work, but no luck so far. I have a logic probe and can see the MOSI, CLK and SS lines toggling away, but the 7219 doesn't react. A scope wo


Convert / recompile code - 16F84 to 16F628 need help!

Started by Shawn McClintock in Piclist20 years ago 5 replies

I have C source for a project, it was written for the 16F84. I am trying to recompile using Hi-Tec to use the code on a 16F628 so I...

I have C source for a project, it was written for the 16F84. I am trying to recompile using Hi-Tec to use the code on a 16F628 so I can add a few routines myself (the code uses most of the 84's mem space) but even after selecting the type of pic to compile for, the resulting HEX file


16F628(A) at 16 MHz and TMR0 problem

Started by Wolfgang in Piclist19 years ago 3 replies

Hi, i am using "PIC Simulator IDE" from OshonSoft to compile and assemble my code for the 16F628. All is working fine. But I have got the...

Hi, i am using "PIC Simulator IDE" from OshonSoft to compile and assemble my code for the 16F628. All is working fine. But I have got the problem, that when I want to have i.e. 50 Hz frequency output to one pin on port a, i never get the result I am expecting. I compute like this : clock frequency is 16 Mhz, so internal clock is 4MHz. If I


16F628 in-circuit programming problem

Started by leon_heller in Piclist19 years ago 11 replies

This is a weird one! I've added connections for in-circuit programming to my JDM programmer, and it works OK with a 16F88 on the...

This is a weird one! I've added connections for in-circuit programming to my JDM programmer, and it works OK with a 16F88 on the target board. However, when I try to program a 16F628 on the same target board programming fails on the first location. The chip programs OK whe


16F628 Data EEPROM Write Problem

Started by Scott Kellish in Piclist20 years ago 3 replies

  Hi Everyone, I'm having some intermittent problems writing to the data eeprom on 16F628 parts. Below is the code...

  Hi Everyone, I'm having some intermittent problems writing to the data eeprom on 16F628 parts. Below is the code I'm using. Once in a while, probably on


PIC Timing

Started by Anonymous in Piclist20 years ago 11 replies

I need to use an External Oscilator for my 16F628. Which setting should I use? LP, XT, HS, EC? What else do I need to do? ...

I need to use an External Oscilator for my 16F628. Which setting should I use? LP, XT, HS, EC? What else do I need to do? Thanks for any help.


Serial I/O on the 16F628

Started by jrem in Piclist20 years ago 17 replies

Guys/Gals: I can't seem to get the tx i/o to flip. I could spend endless hours screwing with the hardware (since MPLab...

Guys/Gals: I can't seem to get the tx i/o to flip. I could spend endless hours screwing with the hardware (since MPLab doesn't support serial functions) or I could ask the infinite intellegence (i.e., you the group) for direction. I choose the latter. He


Thanks for the CONFIG help

Started by upand_at_them in Piclist20 years ago 3 replies

I got the 16F628 programmed, wired up the circuit, connected it to my little Yaesu VX-2R, launched HyperTerminal, and voila! I...

I got the 16F628 programmed, wired up the circuit, connected it to my little Yaesu VX-2R, launched HyperTerminal, and voila! I was tickled pink just to see this in the term window: PIC 16F62x Packet Decoder * N0QBH (c) 2003 And then... N3SDO-9>APRS,WIDE


Eeprom in 16F648A

Started by wantoniet in Piclist20 years ago 5 replies

Hi, I was working at my last project and found a problem so very interesting. My equipament used a 16f628 and i upgraded to...

Hi, I was working at my last project and found a problem so very interesting. My equipament used a 16f628 and i upgraded to 16f648a cause i required more flash memory. On step to write in internal eeprom, i realized that sometimes wrote right, sometimes not. After tw


JDM, ICProg!

Started by Mohammed Abdellatif in Piclist21 years ago 6 replies

Hi all, I've a JDM programmer and 16f628 pic, I'm trying to program using the ICProg, on Windows 98, and it keep on not working!...

Hi all, I've a JDM programmer and 16f628 pic, I'm trying to program using the ICProg, on Windows 98, and it keep on not working! I saw some notes about pulling the RB4 to GND, but the programmer even fails to program a common 16f84A pic! I was using some very simple version of


16F628... TRISA won't set RA5 bit

Started by tom_bihn in Piclist21 years ago 8 replies

I'm using the following line to configure the bits in the pic: __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_ON & _CP_OFF & ...

I'm using the following line to configure the bits in the pic: __CONFIG _INTRC_OSC_NOCLKOUT & _WDT_OFF & _PWRTE_ON & _CP_OFF & _BODEN_OFF & _MCLRE_OFF Here is the code used up to the point that I'm writing TRISA reg. clrf PORTA clrf PORTB


16F628

Started by Anonymous in Piclist20 years ago 23 replies

I need to use PortA.4 for a serout, but it doesn't seem to be working.  I wrote: CMCON = 7 Is there anything else I need...

I need to use PortA.4 for a serout, but it doesn't seem to be working.  I wrote: CMCON = 7 Is there anything else I need to do?  Serout makes the pin an


more PC, PCL, and PCLATH confusion

Started by jrem123 in Piclist20 years ago 2 replies

Okay, so I can write into the PCL, and I can write into the PCLATH, and dependent upon the execution either an 11 bit or a 13 bit...

Okay, so I can write into the PCL, and I can write into the PCLATH, and dependent upon the execution either an 11 bit or a 13 bit value goes into the PC (which is PCH and PCL). 11 bits is 7FF, 13 bits is 1FFF (I'm working with a 16F628). So it appears the 1FFF is the 2k fla


CCS and power saving mode on pic16f628...

Started by Vincent in Piclist18 years ago 5 replies

Message Hi all,   I had a battery powered project running on the 16F628 p

Message Hi all,   I had a battery powered project running on the 16F628 p