(Solved) Using 2 Clickboards on EasyPic v7

General discussion on mikroElektronika development boards.
Post Reply
Author
Message
ksstms
Posts: 19
Joined: 20 Apr 2013 14:25

(Solved) Using 2 Clickboards on EasyPic v7

#1 Post by ksstms » 07 May 2013 18:44

Hi,
I want to use GSM2 and GPS2 Click on an EasyPic v7 board, but I don't know how to separate the two UART communications. I tried using UART1 and UART2 functions, but the program doesn't seem to do anything, it just freezes. I need a program, that sends gps data in sms if the coordinates are out of the specified range. I think the solution is to disable one module while the other works. How do I do it? I'm using mikropascal, but it's okay if you write here in mikroC.
Thank you.
Last edited by ksstms on 05 Nov 2013 13:30, edited 1 time in total.

User avatar
milos.vicentijevic
Posts: 965
Joined: 23 Apr 2013 08:09

Re: Using 2 Clickboards on EasyPic v7

#2 Post by milos.vicentijevic » 08 May 2013 14:21

Hello,

GPS2 and GSM2 are using UART for communication. Unfortunately,
both mikro BUS sockets on EasyPIC7 are using the same UART that
is traced to RC6 and RC7 pins.

The only solution is to use one board placed in mikro BUS socket. (It
will be connected to UART1) Other one you have to connect manually
via male to female and female to female wire jumpers on UART2.
For successful installation you will have to connect GND line, power line,
TX and RX on Click board to corresponding pins on development system
EasyPIC7.

TX2 is usually at RB6 pin (PORTB header), RX2 is usually at RB7 (PORTB header).
(For exact position of RX2/TX2 please consult datasheet of MCU you planed to use.)

GND can be also connected from PORTB header. Power line is little bit
tricky when it comes to click boards. GSM2 and GPS2 boards have
smd resistor as a selector of power source. You have to inspect by
yourself is board preset to work on +5V or +3.3V power source.

If it is set to work on +5V source, just connect +5V from PORTB header on click board
if this is not a case, use 3.3V from mikro BUS header only to corresponding 3.3V pin
at header on click board.

Best Regards,
Milos Vicentijevic

ksstms
Posts: 19
Joined: 20 Apr 2013 14:25

Re: Using 2 Clickboards on EasyPic v7

#3 Post by ksstms » 23 May 2013 08:46

It works!
Thank you, Milos

Post Reply

Return to “Development Boards”