PDA

View Full Version : Please help me!



ron6699
- 29th October 2004, 01:21
Hy!

I am a newbie in pic programming!

When i programm EEPROM 1,"A" then my programm writes at programming time A at 1(that works)

But when i use WRITE 1,10 it dont works.

When is my programm starting?
When the pic becomes energy or not?

I am Programming Goldcard with 16F84.

Is my Programm starting when i put it in a Chipdrive?(or when?)

My questions are very stupid i know,but please help me!

MFG
RON

mister_e
- 29th October 2004, 02:27
>When i programm EEPROM 1,["A"] then my programm writes at programming time A at 1(that works)

But when i use WRITE 1,10 it dont works.

Reason is because EEPROM use constant but WRITE must be use with variable. So these line will work

ToBeStore VAR BYTE
ToBeStore="A"
WRITE 1,ToBeStore

you can also use

DATA @1,"A"

>Is my Programm starting when i put it in a Chipdrive?(or when?)
Program start when
1. Supply is on
2. When MCLR pin is high


>My questions are very stupid i know,but please help me!
there's no stupid question.

hope the above help you