hi,
sure I have to return the orignal config. but first of all i should see how it looks like.
the MCLR was set to off (MCLR_OFF), I try another way to test the circuit in oder to bring back to the original setting.
thanks for your attention
Minh LE
hi,
sure I have to return the orignal config. but first of all i should see how it looks like.
the MCLR was set to off (MCLR_OFF), I try another way to test the circuit in oder to bring back to the original setting.
thanks for your attention
Minh LE
Hi Minh LE,
Actually you do not have to return it to the default settings. The Default settings are there, mostly to help beginning programmers get started, as they likely do not know how to set them in code. You have 3 choices, return them to default settings, comment them out and always set them in your main code, or set them to the setting you use most often and do not include them in your code.
JS
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Hi, Mackrakit,
I did a mistake:
when add the @device pic16f628 intrc_osc_noclkout
and @device 16f628 mclr_off
in the conf. window should be :
1- oscillator: intrc clockout
2- Mclr input pin
-------------------------------------------------
for several ouput pins @ port B, the story is different. I am trying to read in the data sheet of the 16f628.
regards,
Minh le
Are you looking at the TRIS statement? If so, start by putting it near the beginning of your code.
TRISB = %00000000 ' makes all PORT B pins output
TRISB = %11111111 ' makes all PORT B pins input
TRISB = %00000011 ' makes pins B.0 and B.1 inputs, the rest outputs.
Dave
Always wear safety glasses while programming.
Thanks For Your Help,
It Is As Simple As Assembly Language. And It Is Easy For Me To Follow.
The Codes That Appear In The Program Of Blinking Port B Like This:
Trisb, Pr2, Ccpr1l, Ccp1con, T2con. These Scared Me.
So I Can Continue Now With The Simple Progrmams
Thanks Agiain,
Minh Le
Bookmarks