PIC - PIC Development Board + PIC16F877A (HCDVBD0003)

Microchip PIC development boards and accessories
admin
Site Admin
Posts: 865
Joined: Sun Aug 05, 2012 4:02 pm

PIC - PIC Development Board + PIC16F877A (HCDVBD0003)

Post by admin » Wed Apr 10, 2013 1:55 pm

Image
Image
Image
Example ICSP (Programmer not included)

Product Description:
High quality PIC microcontroller development board.

1. Reset button.
2. 4M crystal onboard ,Using socket,Crystal frequency can be replaced easily at any time
3. 4 independent push buttons, connected to RB0 RB1 RB2 RB3
4. 8 LED’s connected to the RD port, J3 is jumpered to enable LED’s. Remove to disconnect.
5. Standard RS232 communication interface, microcontroller computer communication interface.
6. USB power supply interface.
7. External 5V DC power interface
8. Power switch.
9. ICSP (ZR) programming interface (K150 PICKIT2 PICKIT3 ICD2 etc.)
10. VCC GND Pin power expansion interface, can use for access or to 5V power supply.
11. Microcontroller IO port Pin leads for convenient expansion.
12. DS18B20 temperature sensor interface
13. LCD1602 LCD interface
14. LCD12864 LCD interface


Package includes:
1. 1 x PIC development board
2. PIC16F877A chip
3. 1 x USB cable

Please note a separate programmer will be required to program the microcontroller such as item HCDVBD0002

Order Yours Here.

Schematic:
Image

Example Program (requires MPLAB and HI-TEC C compiler):

Code: Select all

/* FILE:    PIC_16F877a_LED_Test.cpp
   DATE:    26/07/14
   VERSION: 0.1
   AUTHOR:  Andrew Davies

This test program will flash the LED's connected to port D on the development board.
It was written using the MPLAB IDE and the HI-TECH C complier. Make sure that you
have the HI-TEC C compiler tools installed with MPLAB to compile this program.

You may copy, alter and reuse this code in any way you like, but please leave
reference to HobbyComponents.com in your comments if you redistribute this code.
This software may not be used directly for the purpose of selling products that
directly compete with Hobby Components Ltd's own range of products.

THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, WHETHER
EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR LACK OF NEGLIGENCE.
HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR ANY DAMAGES,
INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR ANY
REASON WHATSOEVER.
*/
 

#include <pic.h>
#include <htc.h>
#define _XTAL_FREQ 4000000
__CONFIG(0x3FB1);

void main(void) 
{ 
	TRISD = 0;  
        
    while(1)
    { 
		/* Turn off LED's on port D. */
     	PORTD=0xFF;  
        __delay_ms(150);

		/* Turn on LED's on port D. */
		PORTD=0x00; 
        __delay_ms(150);
     } 
 } 
 

Great Cow Basic 1602 LCD Example:

Code: Select all

'  FILE:    PIC_GCB_16F877a_LCD_Example
'  DATE:    07/08/14
'  VERSION: 0.1
'  AUTHOR:  Andrew Davies
'
'This program was written using the Great Cow Basic IDE for use with our PIC 
'16F8777A development board (HCDVBD0003) and our 1602 parallel LCD module 
'(HCMODU0013 or HCMODU0038) to display some example text.
'
'You may copy, alter and reuse this code in any way you like, but please leave
'reference to HobbyComponents.com in your comments if you redistribute this code.
'This software may not be used directly for the purpose of selling products that
'directly compete with Hobby Components Ltd's own range of products.
'
'THIS SOFTWARE IS PROVIDED "AS IS". HOBBY COMPONENTS MAKES NO WARRANTIES, 
'WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED 
'WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, ACCURACY OR
'LACK OF NEGLIGENCE. HOBBY COMPONENTS SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE
'FOR ANY DAMAGES INCLUDING, BUT NOT LIMITED TO, SPECIAL, INCIDENTAL OR 
'CONSEQUENTIAL DAMAGES FOR ANY REASON WHATSOEVER.




'Chip Settings. Assumes our 16F877A development board with with external 4MHz 
' crystal
#chip 16F877A,4

'Use LCD in 4 pin mode and define LCD pins
 #define LCD_IO 4
 #define LCD_RW PORTE.1
 #define LCD_RS PORTE.0
 #define LCD_Enable PORTE.2
 #define LCD_DB4 PORTD.4
 #define LCD_DB5 PORTD.5
 #define LCD_DB6 PORTD.6
 #define LCD_DB7 PORTD.7


'Main program 
 Main:
 
   'Clear the LCD
   CLS
   
   'Display some text on both lines
   Locate 0,5  
   Print "HOBBY" 
   locate 1,3 '
   print "COMPONENTS"

  'Do nothing
   Do Loop

 Goto Main
Software:
Microchip MPLab (TM) Development environment software can be downloaded from the Microchip website here

We have now put together a quick start guide for using the Great Cow Basic development environment. This software is open source and excellent way to get started quickly with PIC mincrocontrollers. You can find the guide in the software section of our forum here


PIC16F877A Datasheet:
PIC16F87XA_Datasheet.pdf
You do not have the required permissions to view the files attached to this post.

George

Re: PIC - PIC Development Board + PIC16F877A (HCDVB0003)

Post by George » Fri Oct 04, 2013 8:58 am

I've recently purchased (invoice 20145) one of these development boards from you and would like an electrical schematic.
Is this available?

andrew
Site Admin
Posts: 1374
Joined: Sun Aug 05, 2012 4:15 pm

Re: PIC - PIC Development Board + PIC16F877A (HCDVB0003)

Post by andrew » Fri Oct 04, 2013 9:54 am

We have contacted the factory that supplies these boards. We hope to be able to post a schematic sometime today.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

brinn
Posts: 11
Joined: Sat Jul 26, 2014 9:51 am

Re: PIC - PIC Development Board + PIC16F877A (HCDVBD0003)

Post by brinn » Sat Jul 26, 2014 9:56 am

any more of the missing of circuit ?? right side is missing ..
i just used one of these and erased the led flashing programe on the pic chip which came with it ,where can i find it again to load it up ?

andrew
Site Admin
Posts: 1374
Joined: Sun Aug 05, 2012 4:15 pm

Re: PIC - PIC Development Board + PIC16F877A (HCDVBD0003)

Post by andrew » Sat Jul 26, 2014 2:54 pm

any more of the missing of circuit ?? right side is missing ..
Your browser is probably cropping the image. Try right clicking on the image and opening it to a new tab.
i just used one of these and erased the led flashing programe on the pic chip which came with it ,where can i find it again to load it up ?
I believe that test program is flashed into the device by the factory when board is tested. I'm about to add an example blink program to the first post. Unfortunately I can't test it right now so feedback would be appreciated.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

brinn
Posts: 11
Joined: Sat Jul 26, 2014 9:51 am

Re: PIC - PIC Development Board + PIC16F877A (HCDVBD0003)

Post by brinn » Mon Jul 28, 2014 8:20 am

not having much luck with mplab theres always a problem with the compiler stopping things .i loaded up mplab x and that seems better but still cant load via pickit3

mplab seems unstable and crashing

andrew
Site Admin
Posts: 1374
Joined: Sun Aug 05, 2012 4:15 pm

Re: PIC - PIC Development Board + PIC16F877A (HCDVBD0003)

Post by andrew » Mon Jul 28, 2014 4:41 pm

MPLAB is quite a mature program so it shouldn't crash all the time. What error message are you seeing when you attempt to program via your pickit3 programmer?
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

brinn
Posts: 11
Joined: Sat Jul 26, 2014 9:51 am

Re: PIC - PIC Development Board + PIC16F877A (HCDVBD0003)

Post by brinn » Mon Jul 28, 2014 8:25 pm

its not responding due to the nag screen and wont get the compiler path right , theres a lot of compiler paths that could be the ones, or can you add paths for all potential compilers you may use for each type of chip ?
mplabx has it all built in so seems better

andrew
Site Admin
Posts: 1374
Joined: Sun Aug 05, 2012 4:15 pm

Re: PIC - PIC Development Board + PIC16F877A (HCDVBD0003)

Post by andrew » Tue Jul 29, 2014 7:59 am

I'm not sure what version of MPLAB you are running but the latest version (8.92) doesn't seem to have the HI-TECH C compiler bundled with it. The version I currently have installed is 8.50 which does. This version will pop up a window at installation asking if you want to install the compiler with MPLAB. Once the installation is complete you shouldn't need to set any paths for the compiler but if you do just go to Project-> Set Language Tool Locations. In the window that opens up you will see entries for the HI_TECH C compiler. You will need to set the executables to something like this (depending on your version and operating system):

C:\Program Files\HI-TECH Software\PICC\9.70\bin\picc.exe

If you want to try the version I have (8.50), older version of MPLAB can be downloaded from the Microchip website here:

http://www.microchip.com/pagehandler/en ... parts.html
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

brinn
Posts: 11
Joined: Sat Jul 26, 2014 9:51 am

Re: PIC - PIC Development Board + PIC16F877A (HCDVBD0003)

Post by brinn » Tue Jul 29, 2014 9:12 am

i am now seting up a project in mplab ,set the chip type and cant find the small mcw window showing all the package of files like source ,header , object ,library and other files so i can add the main program files and linker ,so stuck at this stage ,its a bitch to get your head round it .once i get past this stage it should be plain sailing ..

Post Reply

Return to “Microchip”