PDA

View Full Version : 16F819 syntax ERROR



k-hirayama
- 3rd February 2008, 22:11
Hi
I'm using microcode studio with mel picbasic pro 2.46.

Q1.
I'm trying to replace 16F84A to 16F819.
you know, it must define adcon at 16F819.

at my case, AD converter not use on 16F819.
RA0-RA4 is digital port that I need.

for exsample

CMCON=7
define ADCON1
cmcon = %00000001
ansel=0

syntax or undefined symbol error is appear at all line.

Q2.
I hope know internal osc useing on 16F819.
I don't understand how to define at all .

regard . yoroshiku douzo.

skimask
- 3rd February 2008, 22:59
Did you change the default PIC to 16F819 in MCS?

k-hirayama
- 4th February 2008, 01:35
Did you change the default PIC to 16F819 in MCS?

Hi
Thanks to reply.
No I did not change. and I don't know change MCS.

regard.

Pic_User
- 4th February 2008, 02:00
Hi k-hirayama,

Welcome to the PBP forum. MCS = MicroCode Studio

<IMG SRC="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=2328&stc=1&d=1202090205">

-Adam-

Pic_User
- 4th February 2008, 02:39
Hi k-hirayama,

Q1
peterdeco1
http://www.picbasic.co.uk/forum/showthread.php?p=46839&highlight=ADCON1+16F819#post46839

Q2
peterdeco1
http://www.picbasic.co.uk/forum/showthread.php?p=46839&highlight=OSCCON+16F819#post46839
http://www.picbasic.co.uk/forum/showthread.php?p=46840&highlight=TRIS+registers#post46840

-Adam-

k-hirayama
- 4th February 2008, 08:09
Hi k-hirayama,

Q1
peterdeco1
http://www.picbasic.co.uk/forum/showthread.php?p=46839&highlight=ADCON1+16F819#post46839

Q2
peterdeco1
http://www.picbasic.co.uk/forum/showthread.php?p=46839&highlight=OSCCON+16F819#post46839
http://www.picbasic.co.uk/forum/showthread.php?p=46840&highlight=TRIS+registers#post46840

-Adam-

Hi

I will trying it.
thank you

regard.

k-hirayama
- 4th February 2008, 23:38
Hi dear
internal OSC define problem was clear.
but, it's unstable in my borad.
maybe pic or pic writer will wrong.

digital and analog setting was understand too.

this forum is very useful for me.
like this forum does not exist in my country.

I will post any problem to this forum again.

Thank you for all user.

Regard





Hi k-hirayama,

Q1
peterdeco1
http://www.picbasic.co.uk/forum/showthread.php?p=46839&highlight=ADCON1+16F819#post46839

Q2
peterdeco1
http://www.picbasic.co.uk/forum/showthread.php?p=46839&highlight=OSCCON+16F819#post46839
http://www.picbasic.co.uk/forum/showthread.php?p=46840&highlight=TRIS+registers#post46840

-Adam-

Pic_User
- 5th February 2008, 00:40
Hi k-hirayama,

Happy you got answers for your questions.

I find the forum useful too. Sometimes, I just read it, without a specific question. Just to learn.

Please feel free to post again.

-Adam-