Dear all, I'm back with a quick presentation, presentation
which I had to share some time ago about the famous development board EasyPic
v7 made by Mikroelectronika , launched on 07 October 2011.
The motherboard, at the hardware level is very well
structured, it allows you to implement many configurations, depending on your
desires.
I will attach the electronic schematic to be more easily for
those who want to reproduce the project without having the Easypic v7 board.
I will not bored you with the detailed information about
this product, you can find them easily on their website.
What does it bring this development board:
- Power Supply which allows you to work with both voltage level, +5vcc and +3,3 vcc,
- Two sockets which allows you to connect the Click boards,
- On-board programmer,
- Disponibility to work with more than 387 microcontrollers,
- The board contains eight sockets:DIP40, DIP28, DIP20, DIP18A, DIP18B, DIP14, DIP8 and support for PIC10F,
- Disponibility to connect the peripheral via: UART, UART - USB,USB, RS232 and I2C,
- 4 digit 7seg. - display, Lcd 2x16 character, an graphic display with a resolution of 128x64 pixels and a touch panel controller,
- Sockets to attach the temperature sensors DS1820 and LM35,
- Piezo Buzzer,
- Input/Output Group contains PORT headers, tri-state pull up/down DIP switch, buttons and LED’s,
- ADC inputs through variable resistor, capability to adjust the brightness of Lcd’s,
The PCB is made from glass textolite with a thickness of 3 mm and a diameter of 266 x 220mm. Is very well finished and has a 445g weigh.
In conclusion EasyPIC v7 is one of the best PIC development
boards I have ever seen. Full of I/O ports, highly flexible and configurable.
The schematics manual and user’s guide included in the
package explain very well all the on-board features and how to use them. From my personal point of view the EasyPIC v7 is a must have development board for both beginners and experienced
developers.
Can you tell me in mikroc, how display a decimal IN LED 7 SEGMENT (eg 12.3). Thank you very much!!
ReplyDeleteHello,
ReplyDeletethis is the way:
unsigned short mask(unsigned short num)
{
switch (num)
{
case 0 : return 0x3F;
case 1 : return 0x06;
case 2 : return 0x5B;
case 3 : return 0x4F;
case 4 : return 0x66;
case 5 : return 0x6D;
case 6 : return 0x7D;
case 7 : return 0x07;
case 8 : return 0x7F;
case 9 : return 0x6F;
case 10 : return 0x40; // Symbol '-'
case 11 : return 0x39; // Symbol 'c'
case 12 : return 0x63; // Symbol degree;
case 13 : return 0x80; // Comma "," symbol
case 14 : return 0x00; // Blank
} //case end
}
void ds18b20(unsigned int temp2write)
{
const unsigned short RES_SHIFT = TEMP_RESOLUTION - 8;
unsigned temp_whole;
unsigned int temp_fraction;
unsigned short isNegative = 0x00;
// Check if temperature is negative
if (temp2write & 0x8000)
{
temp2write = ~temp2write + 1;
isNegative = 1;
}
// Extract temp_whole
temp_whole = temp2write >> RES_SHIFT ;
// Extract temp_fraction and convert it to unsigned int
temp_fraction = temp2write << (4-RES_SHIFT);
temp_fraction &= 0x000F;
temp_fraction *= 625; // 625 for ds18b20 and 5000 for ds1820;
DD0 = mask(11); // Censius symbol
DD1 = mask(12); // degree symbol
DD2 = temp_fraction /1000;
DD2 = mask(DD2);
DD3 = temp_whole%10; // Extract Ones Digit
DD3 = mask(DD3)+mask(13);
DD4 = (temp_whole/10)%10; // Extract Tens Digit
DD4 = mask(DD4);
DD5 = temp_whole/100; // Extract Hundred digit
if (isNegative == 1) DD5=10;
else if (DD5 == 0) DD5 = 14 ;
DD5 = mask(DD5) ;
}
...by the way, the code is running.
Thank you Ducu, I will try it and simulate with ISIS.
ReplyDeletehello ducu, I just found the code you write for the DS18B20 temperature sensor on the forum mikroc.I try to simulate it on protues but failed to show in the picture below:
ReplyDeletelink of picture: https://lh5.googleusercontent.com/-POtDgxt-fNY/UIf4jcNX39I/AAAAAAAAAwk/tlzVptwjc8k/s647/ds18b20+sensor.jpg
link of code: http://www.mikroe.com/forum/viewtopic.php?f=88&t=26256
I see the code you write very well but do not understand why it fails on 7 seg LED display
Hello Huynh Minh Trung,
ReplyDeletebe careful with Proteus, because the program has some errors, I also didn't make it to work with 7-segment digits and I let the simulation away.
In reality it works perfectly.
Thank you again Ducu, I will try to build on the actual circuit!
ReplyDeleteGreat and that i have a swell supply: What Renovations Increase The Value Of A Home house renovation and design
ReplyDelete