Author: sebastien.lelong
Date: Thu Jan  1 22:54:23 2009
New Revision: 698

Added:
    trunk/unvalidated/sample/test/board/board_16f88_sl.jal

Log:
first draft for "my" 16f88 board

Added: trunk/unvalidated/sample/test/board/board_16f88_sl.jal
==============================================================================
--- (empty file)
+++ trunk/unvalidated/sample/test/board/board_16f88_sl.jal      Thu Jan  1  
22:54:23 2009
@@ -0,0 +1,75 @@
+-- ------------------------------------------------------
+-- Title: BOARD FILE for 16f88
+-- Author: Joep Suijs, Copyright (c) 2008..2008, all rights reserved.
+-- Adapted-by:
+-- Compiler: >=2.4g
+--
+-- This file is part of jallib  (http://jallib.googlecode.com)
+-- Released under the BSD license  
(http://www.opensource.org/licenses/bsd-license.php)
+--
+-- Description: This file defines the configuration for a 16f88  
prototyping board,
+-- the SirBot's mainboard.
+-- --
+-- The full description on this board can be found here, and can be  
freely  reproduced:
+--    * http://sirbot.org/sirbot-modules/main_board
+-- --
+-- BOARD DESCRIPTION
+-- -----------------
+-- The SirBot's mainboard is based on a 16f88.
+-- While an external xtal can be used, the default is to use the internal  
resonator @ 8MHz
+-- Two connectors, one for each PORT of 16f88 (PORTA and PORTB) can be  
used to:
+--   - either plug a breadboard
+--   - or plug one or more daugther boards
+--
+-- Sources:
+--
+-- Notes: this is mainly based on board_16f88_js.jal board file
+--
+-- ------------------------------------------------------
+
+;@jallib section chipdef
+-- chip setup
+include 16f88
+
+;--
+-- We'll use internal oscillator. It work @ 8MHz
+pragma target clock            8_000_000
+pragma target OSC              INTOSC_NOCLKOUT
+-- Specify no postscaler, ie. really runs @8MHz
+OSCCON_IRCF = 0b_111
+pragma target WDT       disabled       -- no watchdog
+pragma target LVP       disabled       -- no low-voltage programming
+pragma target CCP1MUX   RB3            -- ccp1 pin on B3
+
+
+
+;@jallib section led
+-- LED IO definition
+var bit led             is pin_b3
+var bit led_direction   is pin_b3_direction
+var bit led2            is pin_b1
+var bit led2_direction  is pin_b1_direction
+
+;@jallib section lcd_hd44780_4
+-- LCD IO definition
+var bit lcd_rs           is pin_b4              -- LCD command/data select.
+var bit lcd_rs_direction is pin_b4_direction
+var bit lcd_en           is pin_b0              -- LCD data trigger
+var bit lcd_en_direction is pin_b0_direction
+
+var byte lcd_dataport is porta_low              -- LCD data  port
+var byte lcd_dataport_direction is porta_low_direction
+const byte LCD_ROWS     = 2                     -- 2 lines
+const byte LCD_CHARS    = 16                    -- 16 chars per line
+
+;@jallib section i2c
+-- I2C io definition
+var volatile bit i2c_scl            is pin_b4
+var volatile bit i2c_scl_direction  is pin_b4_direction
+var volatile bit i2c_sda            is pin_b1
+var volatile bit i2c_sda_direction  is pin_b1_direction
+
+;@jallib section ccp
+-- ccp setup
+var volatile bit pin_ccp1_direction is pin_b3_direction
+

--~--~---------~--~----~------------~-------~--~----~
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