Loading ...
Sorry, an error occurred while loading the content.

libaries

Expand Messages
  • pyrothrax0x
    i really am finding it hard to get a libary for the 16f627 any body got an idea where a good website is for libaries? thanks plus are any of thies to do with
    Message 1 of 10 , Apr 30, 2009
    • 0 Attachment
      i really am finding it hard to get a libary for the 16f627 any body got an idea where a good website is for libaries?

      thanks

      plus are any of thies to do with not finding the 16f627_bert.jal ?
      jal 2.4i (compiled Dec 1 2008)
      [Error] (Untitled.jal) [Line 2] cannot open '16f627_bert.jal'
      [Error] (Untitled.jal) [Line 4] "pin_b2" not defined
      [Error] (Untitled.jal) [Line 4] '=' expected (got 'var')
      [Error] (Untitled.jal) [Line 5] "pin_b3" not defined
      [Error] (Untitled.jal) [Line 5] '=' expected (got 'pin_b2_direction')
      [Error] (Untitled.jal) [Line 8] "pin_b2_direction" not defined
      [Error] (Untitled.jal) [Line 8] "input" not defined
      [Error] (Untitled.jal) [Line 8] '=' expected (got 'pin_b3_direction')
      [Error] (Untitled.jal) [Line 9] "pin_b3_direction" not defined
      [Error] (Untitled.jal) [Line 9] "output" not defined
      [Error] (Untitled.jal) [Line 9] '=' expected (got 'led')
      [Error] (Untitled.jal) [Line 11] "off" not defined
      [Error] (Untitled.jal) [Line 11] '=' expected (got 'forever')
      [Error] (Untitled.jal) [Line 18] "delay_10ms" not defined
      [Error] (Untitled.jal) [Line 18] Too many parameters (0 expected, 1 found)
      15 errors, 0 warnings
    • Joep Suijs
      Hi, Jallib contains device files for 16f627 and 16f627a. Search this group for more info on jallib. Joep PS Jallib contains about 300 device files and 50 other
      Message 2 of 10 , May 1, 2009
      • 0 Attachment
        Hi,

        Jallib contains device files for 16f627 and 16f627a.
        Search this group for more info on jallib.

        Joep

        PS Jallib contains about 300 device files and 50 other library files. It does not include everything with one include like bert-libs. So after the device file, you need to include the libs you need (like delay.jal).
      • pyrothrax0x
        ... thanks for your help i think i found what im looking for, will try it tommorow though the code looks quite long, what roughly is the standered length for a
        Message 3 of 10 , May 1, 2009
        • 0 Attachment
          --- In jallist@yahoogroups.com, "Joep Suijs" <jsuijs@...> wrote:
          >
          > Hi,
          >
          > Jallib contains device files for 16f627 and 16f627a.
          > Search this group for more info on jallib.
          >
          > Joep
          >
          > PS Jallib contains about 300 device files and 50 other library files. It does not include everything with one include like bert-libs. So after the device file, you need to include the libs you need (like delay.jal).
          >

          thanks for your help
          i think i found what im looking for, will try it tommorow though the code looks quite long, what roughly is the standered length for a libery of that sort of PIC? their are 530 odd lines.
        • pyrothrax0x
          15 down to 2 thanks it solved most of the errors but i cant understand why the line delay_10ms(1) isnt defined, is it because it isnt in the libary? jal 2.4i
          Message 4 of 10 , May 2, 2009
          • 0 Attachment
            15 down to 2
            thanks it solved most of the errors but i cant understand why the line "delay_10ms(1)" isnt defined, is it because it isnt in the libary?

            jal 2.4i (compiled Dec 1 2008)
            [Error] (16f627.jal) [Line 552] "delay_10ms" not defined
            [Error] (16f627.jal) [Line 552] Too many parameters (0 expected, 1 found)
            2 errors, 0 warnings


            plus what is a parameter?

            p.s i had to manuly put in the libary as for some reason it couldn't find it and im fairly sure i have the right file path? any ideas
          • afaber999
            Hi, Delay_10ms() is redundant, you can use delay_1ms(10) instead Albert
            Message 5 of 10 , May 2, 2009
            • 0 Attachment
              Hi,
              Delay_10ms() is redundant, you can use delay_1ms(10) instead
              Albert
            • pyrothrax0x
              jal 2.4i (compiled Dec 1 2008) [Error] (16f627.jal) [Line 552] delay_1ms not defined [Error] (16f627.jal) [Line 552] Too many parameters (0 expected, 1
              Message 6 of 10 , May 2, 2009
              • 0 Attachment
                jal 2.4i (compiled Dec 1 2008)
                [Error] (16f627.jal) [Line 552] "delay_1ms" not defined
                [Error] (16f627.jal) [Line 552] Too many parameters (0 expected, 1 found)
                2 errors, 0 warnings


                same error
              • Gordon Williams
                If you want to use delays, use the built-in one. See the JAL manual. Gordon Williams ... From: pyrothrax0x To:
                Message 7 of 10 , May 2, 2009
                • 0 Attachment
                  If you want to use delays, use the built-in one. See the JAL manual.

                  Gordon Williams

                  ----- Original Message -----
                  From: "pyrothrax0x" <pyrothrax0x@...>
                  To: <jallist@yahoogroups.com>
                  Sent: Saturday, May 02, 2009 4:39 PM
                  Subject: [jallist] Re: libaries


                  >
                  > jal 2.4i (compiled Dec 1 2008)
                  > [Error] (16f627.jal) [Line 552] "delay_1ms" not defined
                  > [Error] (16f627.jal) [Line 552] Too many parameters (0 expected, 1 found)
                  > 2 errors, 0 warnings
                  >
                  >
                  > same error
                  >
                  >
                  >
                  > ------------------------------------
                  >
                  > Yahoo! Groups Links
                  >
                  >
                  >
                • pyrothrax0x
                  what is a paramater eg. jal 2.4i (compiled Dec 1 2008) [Error] (led switch2.jal) [Line 14] delay_1ms not defined [Error] (led switch2.jal) [Line 14] Too
                  Message 8 of 10 , May 24, 2009
                  • 0 Attachment
                    what is a paramater

                    eg.
                    jal 2.4i (compiled Dec 1 2008)
                    [Error] (led switch2.jal) [Line 14] "delay_1ms" not defined
                    [Error] (led switch2.jal) [Line 14] Too many parameters (0 expected, 1 found)
                    2 errors, 0 warnings
                  • pyrothrax0x
                    ... thanks so much for the point of delay.jal it now iv looked at it again it has solved most of my problems
                    Message 9 of 10 , May 24, 2009
                    • 0 Attachment
                      --- In jallist@yahoogroups.com, "Joep Suijs" <jsuijs@...> wrote:
                      >
                      > Hi,
                      >
                      > Jallib contains device files for 16f627 and 16f627a.
                      > Search this group for more info on jallib.
                      >
                      > Joep
                      >
                      > PS Jallib contains about 300 device files and 50 other library files. It does not include everything with one include like bert-libs. So after the device file, you need to include the libs you need (like delay.jal).
                      >


                      thanks so much for the point of delay.jal it now iv looked at it again it has solved most of my problems
                    • pyrothrax0x
                      jal 2.4i (compiled Dec 1 2008) 0 errors, 0 warnings [Error] (keypad3x5A_wall.jal) [Line 665] error: target_clock not found -- Delays for n * 1 msec
                      Message 10 of 10 , May 24, 2009
                      • 0 Attachment
                        jal 2.4i (compiled Dec 1 2008)
                        0 errors, 0 warnings
                        [Error] (keypad3x5A_wall.jal) [Line 665] error: 'target_clock' not found

                        -- Delays for n * 1 msec
                        procedure delay_1ms(byte in n) is
                        for n loop
                        _usec_delay(995)
                        end loop
                        end procedure

                        how do i fix this, it's part of the delay.jal procedure



                        eg.
                        -- fixed delay of 1 usec (no arguments)
                        procedure delay_1us() is
                        pragma inline
                        _usec_delay(1)
                        end procedure

                        -- fixed delay of 2 usec (no arguments)
                        procedure delay_2us() is
                        pragma inline
                        _usec_delay(2)
                        end procedure

                        -- fixed delay of 3 usec (no arguments)
                        procedure delay_3us() is
                        pragma inline
                        _usec_delay(3)
                        end procedure

                        -- fixed delay of 4 usec (no arguments)
                        procedure delay_4us() is
                        pragma inline
                        _usec_delay(4)
                        end procedure

                        -- fixed delay of 5 usec (no arguments)
                        procedure delay_5us() is
                        pragma inline
                        _usec_delay(5)
                        end procedure

                        -- fixed delay of 6 usec (no arguments)
                        procedure delay_6us() is
                        pragma inline
                        _usec_delay(6)
                        end procedure

                        -- fixed delay of 7 usec (no arguments)
                        procedure delay_7us() is
                        pragma inline
                        _usec_delay(7)
                        end procedure

                        -- fixed delay of 8 usec (no arguments)
                        procedure delay_8us() is
                        pragma inline
                        _usec_delay(8)
                        end procedure

                        -- fixed delay of 9 usec (no arguments)
                        procedure delay_9us() is
                        pragma inline
                        _usec_delay(9)
                        end procedure

                        -- Delays for n * 10 usec
                        procedure delay_10us(byte in n) is
                        if n==1 then
                        _usec_delay(7)
                        elsif n==2 then
                        _usec_delay(16)
                        elsif n==3 then
                        _usec_delay(25)
                        elsif n==4 then
                        _usec_delay(34)
                        else
                        for n loop
                        _usec_delay(8)
                        end loop
                        end if
                        -- to compensate for low values of N
                        asm nop
                        asm nop
                        asm nop
                        asm nop
                        end procedure

                        -- Delays for n * 1 msec
                        procedure delay_1ms(byte in n) is
                        for n loop
                        _usec_delay(995)
                        end loop
                        end procedure

                        -- Delays for n * 100 msec
                        procedure delay_100ms(word in n) is
                        for n loop
                        _usec_delay(99995)
                        end loop
                        end procedure
                      Your message has been successfully submitted and would be delivered to recipients shortly.