Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
The correct answer is to disable WDT in project settings or add in the main loop the below code.
asm clrwdt
PIC was repeatedly resetting and so you were seeing that issue. It was resetting fast and so you were not seeing any blinking or flashing issue on other Leds of PORTB and C or they...
I modified the code and cleaned it up.
Now the PWM frequency as set by Timer2 is 16khz and T is 62.5us. Instead of 32 points I have chosen 32 * 5 = 160 points. Nearly 10-bit PWM duty according to device datasheet PWM section formula and so max 1018 as the PWM duty.
Signals have improved and...
I have not used any internet tutorials or links.
PIC18F has PWM module which can generate Half and Full bridge signals.
I am using the Full-Bridge mode for the output.
SPWM signals have to be generated by applying correct sequence of sinewave duties (which in turn are PWM duties) to the...
I understand timer and pwm very well.
In PICs Timer2 is related to PWM module. The AC is 220V 50Hz. So, T is 20ms and T/2 is 10ms.
This is for a Stabilizer cum UPS where the mains 220V 50Hz 1-Phase AC is converted to DC with SCR bridge and directly applied to the load as 325V VBUS. Adding +/-...
Thanks for replying Brian.
Tried that change with few other changes but there is no improvement in the P1A...P1D signals.
The SCR_GT_TRIG signal became better.
/*
* File: main.c
* Author: Quantum.Dot
*
* Created on 2 April, 2022, 11:48 PM
*/
#define _XTAL_FREQ 16000000UL
//...
I guess you are trying to print the contents of the array Data[] which are strings.
It is better to use 2D-array.
Try this code and let me know if it works are if there are any issues. I have not tested it.
unsigned char Data[6][6] ={"12345","ABCDE","67890","FGHIJ","13579","KLMNO"};
void...
What is the min and max coolant temperatures? If they are say between -55 and 150 degree Centigrade then a temperature sensor like LM35DZ can be used.
Is LCD used in 4-bit mode or I2C mode?
A Logic Gate N Channel MOSFET is needed to drive the BLDC fan for cooling and it can be 2-wire...
If RA0/AN0 pin has Comparator feature then you have to turn it off.
Usually if the Comparator register is COMxCONx then the disable value is 0. If it is CMCON then it is 0x07.
Long back I used PIC16F controllers before switching mainly to PIC18Fs. PIC16F876A is a 28 pin version similar to 40...
The SCR is for AC to DC Conversion part. Leave that. That signal is perfect and around 209us. It uses 4 SCRs as the controlled bridge rectifier for AC to DC conversion and 1-pair of diagonally opposite SCRs fire at a time and one SCR_GT_TRIG signal of width 209us is used and a 800V, 80A, Igt...
Leave the nops() and the code becomes few lines.
The code is for a UPS based on PIC18F45K22.
The ZCD input to INT0/RB0 pin is mimiked by RB1 pin which toggles once every 10ms and is fed into RB0.
Timer1 and 2 are configured properly and also Oscillator. WDT check has been performed and there...
Having Issues With Full-Bridge Signals [ Code MPLAB-X XC8 ]
This is my code.
/*
* File: main.c
* Author: Quantum.Dot
*
* Created on 2 April, 2022, 11:48 PM
*/
#define _XTAL_FREQ 16000000UL
// PIC18F45K22 Configuration Bit Settings
// 'C' source line config statements
// CONFIG1H...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.