HP7631
-
- Posts: 4
- Joined: Thu Jan 07, 2016 6:15 am
- Has thanked: 3 times
HP7631
Recently I have bought HP7631(EB006+EB083). The LCD of board is blinking but the back light of it is not glowing. I have supplied +5V to EB083 part(lcd+7-segment) and also switched on S5, switch to on lcd. When I switch on 7-segment part it glows but the same is not for lcd backlight. Please reply, what to do.Another problem is in data sheet it is written that it supports different pic microcontroller(pic12/16/18 etc.). As I am familiar with PIC18f458,I tried to do programming using the same with the kit(the kit has 16f1937 microcontroller, supplied with kit) but it is not working.The mloader also showing problem. Sometimes it shows no power and maximum times its showing flash memory not verified. What should I do. Please help.Thank you.
-
- Matrix Staff
- Posts: 9521
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
Re: HP7631
Hi Samanta,
Welcome to Matrix forums.
D10 LED on EB 006 light up when being programmed?
Are you using an external power Supply or powering via USB lead?
Have you got the power selector jumper on PSU or USB on EB006?
Is there a Lit LED (D6 = power) on EB006 ?
What windows are you running?
When the LCD is powered but uninitialised, then you see a row of squares on the top row.
If two rows of squares are showing then you need to adjust contrast preset.
You can tell if there is power going to EB083.
If the microcontroller has not been programmed then switching 7SEG switch to on, all LEDS LB0 - LB7 will light but will not be at full brightness.
If you are still unable to program EB006, then can you take a screenshot of device manager with Matrix programmer part expanded so we can tell if Programmer is recognised OK
Can you post the Flowchart your using so I can take a look at it.
I have attached a flowchart just to test LCD.
Martin
Welcome to Matrix forums.
The LCD does not have a back light, it just uses the light of the room.Samanta Pradipta wrote:he LCD of board is blinking but the backlight of it is not glowing
It usually shows that if there is no communication between PC and EB006 programmer.Samanta Pradipta wrote:Sometimes it shows no power and maximum times its showing flash memory not verified.
D10 LED on EB 006 light up when being programmed?
Are you using an external power Supply or powering via USB lead?
Have you got the power selector jumper on PSU or USB on EB006?
Is there a Lit LED (D6 = power) on EB006 ?
What windows are you running?
When the LCD is powered but uninitialised, then you see a row of squares on the top row.
If two rows of squares are showing then you need to adjust contrast preset.
You can tell if there is power going to EB083.
If the microcontroller has not been programmed then switching 7SEG switch to on, all LEDS LB0 - LB7 will light but will not be at full brightness.
If you are still unable to program EB006, then can you take a screenshot of device manager with Matrix programmer part expanded so we can tell if Programmer is recognised OK
Can you post the Flowchart your using so I can take a look at it.
I have attached a flowchart just to test LCD.
Martin
- Attachments
-
- EB083.fcfx
- (4.11 KiB) Downloaded 489 times
Martin
-
- Posts: 4
- Joined: Thu Jan 07, 2016 6:15 am
- Has thanked: 3 times
Re: HP7631
Thank you so much..
I have checked all as u said. Does EB006 comes with programmed PIC16F1937 for blinking of all port led and lcd initialization? When I place PIC18F458 it is normal and no port led glows and I have checked accordingly as said.I am doing program in MPLAB and trying to burn Hex file by mLoader. Firstly I am trying to do simple led blink on port-D.Attached are the screenshot of device manager and mLoader during program burning. When I burn it to device the status led(d10) blinks also. I have set power option to PSU. Do I set it to USB during programming? After file sent, when I power up by Adapter and connect led board to Port-D it does not glows. Is there any problem regarding EB006V9 usb driver? After downloading it is not getting installed as the file type is not simple .exe and is .dll file. Here is the simple program. What should I do. Please help. Thank you.
#include<p18f458.h>
void MSDelay(unsigned int);
void main()
{
TRISD=0;
while(1)
{
PORTD=0x55;
MSDelay(50);
PORTD=0xAA;
MSDelay(50);
}
}
void MSDelay(unsigned int itime)
{
unsigned int i,j;
for(i=0;i<=itime;i++)
{
for(j=0;j<=165;j++)
{
}
}
}
I have checked all as u said. Does EB006 comes with programmed PIC16F1937 for blinking of all port led and lcd initialization? When I place PIC18F458 it is normal and no port led glows and I have checked accordingly as said.I am doing program in MPLAB and trying to burn Hex file by mLoader. Firstly I am trying to do simple led blink on port-D.Attached are the screenshot of device manager and mLoader during program burning. When I burn it to device the status led(d10) blinks also. I have set power option to PSU. Do I set it to USB during programming? After file sent, when I power up by Adapter and connect led board to Port-D it does not glows. Is there any problem regarding EB006V9 usb driver? After downloading it is not getting installed as the file type is not simple .exe and is .dll file. Here is the simple program. What should I do. Please help. Thank you.
#include<p18f458.h>
void MSDelay(unsigned int);
void main()
{
TRISD=0;
while(1)
{
PORTD=0x55;
MSDelay(50);
PORTD=0xAA;
MSDelay(50);
}
}
void MSDelay(unsigned int itime)
{
unsigned int i,j;
for(i=0;i<=itime;i++)
{
for(j=0;j<=165;j++)
{
}
}
}
- Attachments
-
- Screenshot (5).png
- Device manager Screenshot
- (105.25 KiB) Downloaded 4332 times
-
- Screenshot (3).png
- mLoader Screenshot
- (84.08 KiB) Downloaded 7300 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: HP7631
Hello,
It sounds like you are correctly programming the device but that the device is not starting the program. This will likely be down to your configuration settings which don't currently seem to be in your program.
MPLAB can generate the configuration code for you in your program. For an EB006 you probably need the oscillator mode to be HS, the watchdog timer to be disabled, the extended instruction set to be disabled. Refer to the device datasheet if your unsure about what the various settings do for you.
It sounds like you are correctly programming the device but that the device is not starting the program. This will likely be down to your configuration settings which don't currently seem to be in your program.
MPLAB can generate the configuration code for you in your program. For an EB006 you probably need the oscillator mode to be HS, the watchdog timer to be disabled, the extended instruction set to be disabled. Refer to the device datasheet if your unsure about what the various settings do for you.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 4
- Joined: Thu Jan 07, 2016 6:15 am
- Has thanked: 3 times
Re: HP7631
Thank you Benj..
I have tried to do set configuration bits. Sometimes the mLoader shows flash memory not verified. I have attached the screenshot also. Please have a look. Please reply is anything I am doing wrong. This time I am not able to program the chip due to mLoader.Help please. Thanks.
#include<p18f458.h>
#pragma config WDT=OFF
#pragma config OSC=XT
#pragma config OSCS=OFF
#pragma config PWRT=OFF
#pragma config BOR=OFF
#pragma config LVP=OFF
#pragma config DEBUG=OFF
#pragma config STVR=ON
#pragma config CP0=OFF
#pragma config CP1=OFF
#pragma config CP2=OFF
#pragma config CP3=OFF
#pragma config CPB=OFF
#pragma config CPD=OFF
#pragma config WRT0=OFF
#pragma config WRT1=OFF
#pragma config WRT2=OFF
#pragma config WRT3=OFF
#pragma config WRTB=OFF
#pragma config WRTC=OFF
#pragma config WRTD=OFF
#pragma config EBTR0=OFF
#pragma config EBTR1=OFF
#pragma config EBTR2=OFF
#pragma config EBTR3=OFF
#pragma config EBTRB=OFF
void MSDelay(unsigned int);
void main()
{
TRISD=0;
while(1)
{
PORTD=0x55;
MSDelay(50);
PORTD=0xAA;
MSDelay(50);
}
}
void MSDelay(unsigned int itime)
{
unsigned int i,j;
for(i=0;i<=itime;i++)
{
for(j=0;j<=165;j++)
{
}
}
}
I have tried to do set configuration bits. Sometimes the mLoader shows flash memory not verified. I have attached the screenshot also. Please have a look. Please reply is anything I am doing wrong. This time I am not able to program the chip due to mLoader.Help please. Thanks.
#include<p18f458.h>
#pragma config WDT=OFF
#pragma config OSC=XT
#pragma config OSCS=OFF
#pragma config PWRT=OFF
#pragma config BOR=OFF
#pragma config LVP=OFF
#pragma config DEBUG=OFF
#pragma config STVR=ON
#pragma config CP0=OFF
#pragma config CP1=OFF
#pragma config CP2=OFF
#pragma config CP3=OFF
#pragma config CPB=OFF
#pragma config CPD=OFF
#pragma config WRT0=OFF
#pragma config WRT1=OFF
#pragma config WRT2=OFF
#pragma config WRT3=OFF
#pragma config WRTB=OFF
#pragma config WRTC=OFF
#pragma config WRTD=OFF
#pragma config EBTR0=OFF
#pragma config EBTR1=OFF
#pragma config EBTR2=OFF
#pragma config EBTR3=OFF
#pragma config EBTRB=OFF
void MSDelay(unsigned int);
void main()
{
TRISD=0;
while(1)
{
PORTD=0x55;
MSDelay(50);
PORTD=0xAA;
MSDelay(50);
}
}
void MSDelay(unsigned int itime)
{
unsigned int i,j;
for(i=0;i<=itime;i++)
{
for(j=0;j<=165;j++)
{
}
}
}
- Attachments
-
- Screenshot (4).png
- Device manager screenshot
- (138.63 KiB) Downloaded 4275 times
-
- Screenshot (9).png
- mLoader Screenshot
- (80.69 KiB) Downloaded 7243 times
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: HP7631
Hello,
Your config largely looks ok to me.
If your crystal is 4MHz or over then you will need to change this line.
#pragma config OSC=XT
to this.
#pragma config OSC=HS
Your also using a for loop as your delay.
I have seen embedded compilers have some rather nasty issues with empty for loops in the past so you may want to include a nop instruction inside the loop just to be sure.
Your config largely looks ok to me.
If your crystal is 4MHz or over then you will need to change this line.
#pragma config OSC=XT
to this.
#pragma config OSC=HS
Your also using a for loop as your delay.
I have seen embedded compilers have some rather nasty issues with empty for loops in the past so you may want to include a nop instruction inside the loop just to be sure.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 4
- Joined: Thu Jan 07, 2016 6:15 am
- Has thanked: 3 times