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.
#include <SPI.h>
static const int spiClk = 1000000;
byte address = 0x00;
byte address2 = 0x01; // Address for the second digital pot
SPIClass *hspi = NULL;
void setup()
{
pinMode(53, OUTPUT); // Set SS (Slave Select) pin for the first pot to 53 on Mega
pinMode(45, OUTPUT); // Set SS pin...
hello every one i am trying to understand the BR/CTL pin on the FP5139BWR-LF IC for a buck boost converter.
so what i am confused about is the control where is it coming from and will i be able to get it
also my design is below if you find any issues that i cant catch, the inductors L6, L2...
ok i think i am figuring this out i need help with the interrupts and what i have been seeing from the other posts that there void interrupt is a little different to what i have and for the intcon i dont need all of them right
some of the stuff that i have edited was from another post with a...
ok now i am getting this problem
newmain.c:55:16: error: member reference base type 'volatile unsigned char' is not a structure or union
OPTION_REG.INTEDG = 0; //interrupt on falling edge
#include <stdio.h>
#include <stdlib.h>
#include <xc.h>
#define _XTAL_FREQ 20000000
#pragma...
so i have found this code and i like it but when i plug it into MPLAB XC8 it does not work I've tried looking everywhere and no luck and i am stuck can some one please tell me what i am doing wrong. also can yall help me adding a analog pin to change the phase angle because i am stuck i dont...
but i want to be able to input a POT to adjust the delay i dont know how to do that
this is the code:
unsigned char FlagReg;
sbit ZC at FlagReg.B0;
void interrupt(){
if (INTCON.INTF){ //INTF flag raised, so external interrupt occured
ZC = 1;
INTCON.INTF =...
[THREAD MERGED]
I need help with coding the PIC said above in doing a Zero Crossing detection out putting into an Optocoupler i am not good at coding, i have done a couple of tests with the 16F877A PIC but my professor now wants me to use the 16F1517 because the experiment was conducted on...
Help me I am more familiar with MPLAB but barely and I was wondering if some one can convert this for me. it is a Zero crossing detector
unsigned char FlagReg;
sbit ZC at FlagReg.B0;
void interrupt()
{
if (INTCON.INTF){ //INTF flag raised, so external interrupt occured
ZC = 1;
INTCON.INTF...
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.