page 14
mikr
omedia
BSP makes programming easier
«
Board Support Package in mikroElektronika compilers
In embedded world,
BSP
or
B
oard
S
upport
P
ackage is
the common name for all hardware-specific codes which
simplifies working with the board. That is why we made
a BSP package support for mikromedia
™
workStation
v7 board, to make programming of mikromedia
™
boards
much easier. Various mikromedia boards have different
connections of microcontroller pins on side pads.
mikromedia
™
workStation v7 development system has a
unique set of markings on a silk screen which enables you
to use each pin connected to mikromedia
™
side pads with
the well organized layout, combined together into five I/O
groups labeled as G0, G1, G2, G3 and G4. BSP abstracts
what's "underneath the hood" and enables you to have
one development system for various mikromedia
™
boards.
For example, pin number 5 on the side pad of mikromedia
for PIC18FJ is connected to the RF2 microcontroller pin. On
the other hand, pin number 5 on the side pad of mikromedia
for PIC32 is connected to the RB2 microcontroller pin.
BSP package and mikromedia workStation v7 offers you
the possibility to use this pin with the unique name G0.0,
and this stands for all PIC mikromedia boards. In addition
to simple I/O functions, BSP package also provides you
a simple way of using ADC, I2C, SPI and UART libraries
without knowing, for example if it is UART1 or UART2
module connected to mikromedia
™
side pads. Before
using, you need to choose the appropriate BSP package
depending on the programming language (C, Basic,
Pascal) and the type of mikromedia (PIC18FJ
®
, PIC24
®
,
PIC24EP
®
, dsPIC33
®
, dsPIC33EP
®
, PIC32
®
). BSP can only
be used with Mikroelektronika compilers. If you use other
compilers or if you do not want to use BSP, connections
between mikromedia
™
side pads and workStation board
pins are as shown on the images below.
5V
GND
A0
A1
G0.0
G0.1
G0.2
G0.3
G0.4
G0.5
G0.6
G0.7
G1.0
G1.1
G1.2
G1.3
G1.4
G1.5
G1.6
G1.7
G2.0
G2.1
G2.2
G2.3
3.3V
GND
RST
GND
LOUT
ROUT
G2.4
G2.5
G2.6
G2.7
G3.0
G3.1
G3.2
G3.3
G3.4
G3.5
G3.6
G3.7
G4.0
G4.1
G4.2
G4.3
G4.4
G4.5
G4.6
G4.7
3.3V
GND
5V
GND
A0
A1
G0.0
G0.1
G0.2
G0.3
G0.4
G0.5
G0.6
G0.7
G1.0
G1.1
G1.2
G1.3
G1.4
G1.5
G1.6
G1.7
G2.0
G2.1
G2.2
G2.3
3.3V
GND
RST
GND
LOUT
ROUT
G2.4
G2.5
G2.6
G2.7
G3.0
G3.1
G3.2
G3.3
G3.4
G3.5
G3.6
G3.7
G4.0
G4.1
G4.2
G4.3
G4.4
G4.5
G4.6
G4.7
3.3V
GND
5V
GND
A0
A1
G0.0
G0.1
G0.2
G0.3
G0.4
G0.5
G0.6
G0.7
G1.0
G1.1
G1.2
G1.3
G1.4
G1.5
G1.6
G1.7
G2.0
G2.1
G2.2
G2.3
3.3V
GND
RST
GND
LOUT
ROUT
G2.4
G2.5
G2.6
G2.7
G3.0
G3.1
G3.2
G3.3
G3.4
G3.5
G3.6
G3.7
G4.0
G4.1
G4.2
G4.3
G4.4
G4.5
G4.6
G4.7
3.3V
GND
What is BSP?
mikromedia for PIC18FJ
mikromedia for PIC24
mikromedia for PIC24EP