On 8 Oct 2008, at 19:50 , Joep Suijs wrote:

>
> 2008/10/8, Eur van Andel <[EMAIL PROTECTED]>:
>>
>> Right now, most test files include the board information. I don't  
>> like this
>> either, but that's the way it is.
>>
> Have a look at:
> unvalidated\sample\test\board
> and
> unvalidated\sample\test\jal (amongst others)

I have seen them. Let me post one from me, to give you some example:

> --
> -- File      : BW9_brd7.jal
> -- Author    : Eur van Andel
> -- Date      : 2007-02-14
> -- Purpose   : pin definitions BW9 Brink Olimex PCB 19-12-06
> --         : double sided board, bad 6/4 sterm conn
> --           : 4.88 kHz PWM
> --         : TMR0 for RTC, no external timer increases
> -- Includes  : LCD_trm2 on pin_e0, no serial
> --           
> --
> --
> --
> -- PIC16F877 pin list:  
> --
> -- 01 _MCLR_  input           reset   Wisp628
> -- 02 RA0/AN0 analog input    an_couple
> -- 03 RA1/AN1 analog input    an_press2
> -- 04 RA2/AN2 analog input    an_press_1
> -- 05 RA3/AN3 analog input    an_CO2
> -- 06 RA4     input           fan1 rpm signal
> -- 07 RA5/AN4 input           NC
> -- 08 RE0/AN5 input/output    Sterm serial LCD & keyboard
> -- 09 RE1/AN6 input           NC
> -- 10 RE2/AN7 input           NC
> -- 11 Vdd     supply          +5V
> -- 12 Vss     supply          GND
> -- 13 OSC1    input           X-TAL
> -- 14 OSC2    input           X-TAL
> -- 15 RC0     input           fan2 rpm signal
> -- 16 RC1/CCP2        PWM output      fan2 speed soll
> -- 17 RC2/CCP1        PWM output      fan1 speed soll
> -- 18 RC3     input           NC
> -- 19 RD0     input           NC
> -- 20 RD1     input           NC
> -- ====================================
> -- 21 RD2     output          CS4             TC77 chip select
> -- 22 RD3     output          SCK             TC77 clock
> -- 23 RC4     input           NC
> -- 24 RC5     input           NC
> -- 25 RC6/TX  output          asynch_out      serial TX       
> -- 26 RC7/RX  input           asynch_in       serial RX
> -- 27 RD4     output          CS3
> -- 28 RD5     input           NC
> -- 29 RD6     input           NC
> -- 30 RD7     output          SHT10_DATA      common SHT10 data before MUX
> -- 31 Vss     supply          GND
> -- 32 Vdd     supply          +5V
> -- 33 RB0     output          SHT10_CLK       common SHT10 clock before MUX
> -- 34 RB1     output          MUX_A           SHT10 multiplexer address
> -- 35 RB2     output          MUX_B           SHT10 mux address
> -- 36 RB3     input           SIO             TC77 data 
> -- 37 RB4     input           /CS2    TC77 chip select        
> -- 38 RB5     input           /CS1    TC77 chip select
> -- 39 RB6     input           PGC     Wisp628 program data
> -- 40 RB7     input           PGD     Wisp628 program clock
>
> include f877_20
>
> adcon0 = 0b10_000_00_1        -- Fosc/32, ch0, A/D converter on
>
> bank_1
>    option = 0b11_01_1111 -- Timer_0 internal clock
>                       -- max prescaler to watchdogtimer
>                       -- watchdogtimer not used yet
>
>    adcon1 = 0b1000_0010       -- right justified, 5 analog inputs (AN0,  
> AN1, AN3)
> bank_0
>
> pr2 = 0xFF                    -- PWM fan control @ 4.88 kHz,  10 bits
> t2con = 0b000_01_01           -- postscale =1, TMR2 = on, prescaler = 4
> ccp1con = 0b00_00_1100                -- PWM mode, lower 2 of 10 bits zero
> ccp2con = 0b00_00_1100
> pin_c1_direction = output     --  actual PWM output pin
> pin_c2_direction = output     --  actual PWM output pin
>
> var byte fan1 at 0x15 = 50    -- location of CCPR1L first  PWM output
> var byte fan2 at 0x1B = 50    -- loaction of CCPR2L second PWM output
>
> pragma eedata 250
>
> -- port_a
>
> port_a_direction = all_input  -- default
>
> -- couple analog is pin_a0    -- ch0
> -- pressure2 analog is pin_a1 -- ch1
> -- pressure1 analog is pin_a2 -- ch2
> -- CO2 analog  is pin a3      -- ch3
>
> var bit fan1_rotating is pin_a4
> pin_a4_direction = input              -- fan1 rpm
>
> -- port_b
>
>
> var bit SHT11_SCK is pin_b0 = high    -- data for SHT10's, muxed by 4052
> pin_b0_direction = output
>
> var bit MUX_A is pin_b1 = low         -- 4052 address line
> pin_b1_direction = output
>
> var bit MUX_B is pin_b2 = low                 -- 4052 address line
> pin_b2_direction = output
>
> var bit SIO is pin_b3                         -- TC77 common data
> pin_b3_direction = input              
>
> var bit CS2 is pin_b4 = high          -- TC77 chip select
> pin_b4_direction = output
>
> var bit CS1 is pin_b5 = high          -- TC77 chip select
> pin_b5_direction = output
>
> -- b6 is PGC                          -- don't use as output
> -- b7 is PGD
>
>
> -- port_c
> var bit fan2_rotating is pin_c0
> pin_c0_direction = input              -- fan2 rpm
>
> -- c1 & c2 are PWM outputs
>
> -- pin c3                             -- NC
> -- pin c4                             -- NC
> -- pin c5                             -- NC
>
> pin_c6_direction = output             -- TX to   PC
> pin_c7_direction = input              -- RX from PC
>
> const usart_asynch = true
> const baudrate = 9600                 -- hard-coded in RS232 lib!
>
> include rs232_hw
>
> -- port_d
>
> -- pin_d0, pin_d1                     -- NC
>
> var bit CS4 is pin_d2 = high          -- TC77 chip select
> pin_d2_direction = output
>
> var bit SCK is pin_d3 = high          -- TC77 common clock
> pin_d3_direction = output
>
> var bit CS3 is pin_d4 = high          -- TC77 chip select
> pin_d4_direction = output
>
> -- pin_d5, pin_d6                     -- NC
>
> var bit SHT11_DATA is pin_d7          -- common SHT data, muxed by 4052
> var bit SHT11_DATA_DIR is pin_d7_direction  = input
>
>
> -- port_e
>
> var bit term_pin is pin_e0    
> var bit term_dir is pin_e0_direction
> include lcd_trm2              -- lcd + keyboard, no serial
>
> -- pin_e1_direction = input           -- NC
> -- pin_e2_direction = input           -- NC
>

---
ir EE van Andel [EMAIL PROTECTED]  http://www.fiwihex.nl
Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands
tel+31-546-491106 fax+31-546-491107



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to