Jump to content
mityeltu

Sourceboost Development Board

Recommended Posts

Is there a development board available commercially that is ready to accept sourceboost hex files? i ask because I have been using the EasyPic6 from mikroelectronika and it really sucks (the mikrobasic, not the devolpment board -- too buggy). It will NOT take code generated from sourceboost without extensive modifications for such simple peripherals as LCD, 7-seg, etc. I frankly don't have the patience to keep rewriting the header files etc.

 

So, is there a development board out there specifically designed for sourceboost?

Share this post


Link to post
Share on other sites

The mikroelectronika dev boards are great and getting better. I have the EasyPic4 here. Sad to say you are going to have to change your .H files. One idea is to make a multi-board header file like this:

 

Regards

Tim C

 

 

// Define the LCD connections for the EasyPic4 board here
// these names are defined using the Settings-->options-->compiler
// and then adding the compiler option -d boardname
#ifdef EASYPIC4
#define LCD_LOW_SPEED	  1	  // 1 if not using RW and input in data pin 7
#define LCD_E_PORT		 PORTD
#define LCD_RS_PORT		 PORTD
#define LCD_RW_PORT		 PORTD
#define LCD_DATA4_PORT	  PORTD
#define LCD_DATA5_PORT	  PORTD
#define LCD_DATA6_PORT	  PORTD
#define LCD_DATA7_PORT	  PORTD

#define LCD_E_TRIS		 TRISD
#define LCD_RS_TRIS		 TRISD
#define LCD_RW_TRIS		 TRISD
#define LCD_DATA4_TRIS	  TRISD
#define LCD_DATA5_TRIS	  TRISD
#define LCD_DATA6_TRIS	  TRISD
#define LCD_DATA7_TRIS	  TRISD

#define LCD_E_PIN		 3
#define LCD_RS_PIN		 2
#define LCD_RW_PIN		 1
#define LCD_DATA4_PIN	  4
#define LCD_DATA5_PIN	  5
#define LCD_DATA6_PIN	  6
#define LCD_DATA7_PIN	  7

#define LCD_BOARD_DEFINED
#endif

// Define the LCD for the ETT CP-PIC V4 board (then add the compiler option -d boardname)
#ifdef ETTCPV4
#define LCD_LOW_SPEED	  1	  // 1 if not using RW and input in data pin 7
#define LCD_E_PORT		 PORTA
#define LCD_RS_PORT		 PORTC
#define LCD_RW_PORT		 PORTD	  // dummy not real could move
#define LCD_DATA4_PORT	  PORTD
#define LCD_DATA5_PORT	  PORTD
#define LCD_DATA6_PORT	  PORTD
#define LCD_DATA7_PORT	  PORTD

#define LCD_E_TRIS		 TRISA
#define LCD_RS_TRIS		 TRISC
#define LCD_RW_TRIS		 TRISD	  // dummy not real
#define LCD_DATA4_TRIS	  TRISD
#define LCD_DATA5_TRIS	  TRISD
#define LCD_DATA6_TRIS	  TRISD
#define LCD_DATA7_TRIS	  TRISD

#define LCD_E_PIN		 4
#define LCD_RS_PIN		 0
#define LCD_RW_PIN		 7			// dummy not real
#define LCD_DATA4_PIN	  4
#define LCD_DATA5_PIN	  5
#define LCD_DATA6_PIN	  6
#define LCD_DATA7_PIN	  7

#define LCD_BOARD_DEFINED
#endif

// Define the LCD for the x1 board
#ifdef X1BOARD
#define LCD_E_PORT		 PORTE
#define LCD_RS_PORT		 PORTE
#define LCD_RW_PORT		 PORTE
#define LCD_DATA4_PORT	  PORTD
#define LCD_DATA5_PORT	  PORTD
#define LCD_DATA6_PORT	  PORTD
#define LCD_DATA7_PORT	  PORTD

#define LCD_E_TRIS		 TRISE
#define LCD_RS_TRIS		 TRISE
#define LCD_RW_TRIS		 TRISE
#define LCD_DATA4_TRIS	  TRISD
#define LCD_DATA5_TRIS	  TRISD
#define LCD_DATA6_TRIS	  TRISD
#define LCD_DATA7_TRIS	  TRISD

#define LCD_E_PIN		 1
#define LCD_RS_PIN		 0
#define LCD_RW_PIN		 2
#define LCD_DATA4_PIN	  4
#define LCD_DATA5_PIN	  5
#define LCD_DATA6_PIN	  6
#define LCD_DATA7_PIN	  7

#define LCD_BOARD_DEFINED
#endif

#ifndef LCD_BOARD_DEFINED
#error "You must define a ~development board name~ using the compiler option -d on the command line"
#endif

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...