ADC1,2 dsPIC33FJ64MC706

General discussion on mikroPascal for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Vitali
Posts: 4
Joined: 17 Dec 2008 10:39

ADC1,2 dsPIC33FJ64MC706

#1 Post by Vitali » 19 Dec 2008 19:00

Hi
For dsPIC33FJ64MC706
Why the mistake turns out at attempt to compile a code?

Code: Select all

program ADC_test;

var k : word;

begin
  TRISB.10 := 1; // set pin as input - needed for ADC to work

  Uart1_Init(9600);

  while TRUE do
  begin
    k := Adc1_Read(10, ADC_10bit);
    Uart1_Write_Char(k);
    Delay_ms(50);
  end;

end.
The compiler informs "0:35 E-420 Invalid ASM instruction (135): #@AD1PCFGH (0x000430) W0"
What have I made not correctly?

dane.radakovic
mikroElektronika team
Posts: 95
Joined: 04 Dec 2008 14:19

#2 Post by dane.radakovic » 23 Dec 2008 09:10

Hi,

Please post this question on our Support Desk:
http://www.mikroe.com/en/support/
And provide us with piece of code which demonstrate problem.
Also explain your problem as much you can.

Regards

Vitali
Posts: 4
Joined: 17 Dec 2008 10:39

#3 Post by Vitali » 23 Dec 2008 11:20

Hi
I can not come on support.

"Login Failed !!!
Please login again !!!"

dane.radakovic
mikroElektronika team
Posts: 95
Joined: 04 Dec 2008 14:19

#4 Post by dane.radakovic » 24 Dec 2008 15:51

Hi,

Please try to login once again.
Be careful when you type your user name and password.

If this does not help you please provide us with more information about your Support Desk account.
You can do that by sending me private message in order to save you private information.

Regards

Post Reply

Return to “mikroPascal for dsPIC30/33 and PIC24 General”