Jallist Archive Feb 2004

Re: bug in jal 04.59 and jal04.55W solved

From: Vasile Surducan <vasile(at)s3.itim-cj.ro>
Date: 03 Feb 2004 16:38:23 +0200 (EET)


don't bother to much (Javi@Wouter), my jpic.jal haven't the following
lines:

procedure pin_a5_direction'put( bit in d at trisa : 5 ) is
   _trisa_flush
end procedure

top 10 wishes,
Vasile
http://surducan.netfirms.com


On Tue, 3 Feb 2004, Vasile Surducan wrote:

>
> problem: pin_a5 direction
>
>
> include 16f877_4
> include jpic
> include jdelay
>
> bank_1
> f877_adcon1 = 0b_1000_0111 -- all digital IO
> bank_0
>
> var bit buz is pin_a5
>  pin_a5_direction = output
>
> -- the fix for this bug
> ; var volatile byte tris_a       at  0x_85
> ; bank_1
> ; asm bcf tris_a, 5
> ; bank_0
> buz = low
>
> procedure tick ( byte in ton ) is
>   for 20 loop
>    buz = high
>    delay_200us ( ton )
>    buz = low
>    delay_200us ( ton )
>   end loop
> end procedure
>
> forever loop
>    tick ( 2 )
> end loop
>
> the resulting assembler is here:
>
> ;; 015 :  pin_a5_direction = output
>   bcf     H'21',5
>
> ; 21:5 : ;
> ;   pin_a5_direction               * 0409:09 jpic.jal
>
> which of course is not enough for changing pin_a5_direction
>
>
>
> top 10 wishes,
> Vasile
> 
http://surducan.netfirms.com
>
>
>
>



Seiz System Engineering AbelCam AbelCam WebCam Software for Windows