Continue to Site

Welcome to EDAboard.com

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.

Recent content by sulfur101

  1. S

    Having trouble connecting two digital pots MCP 41H51503 to Arduino Mega

    #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...
  2. S

    Trouble understanding the FP5139BWR-LF pin 4

    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...
  3. S

    [PIC] Help with Zero Crossing Detector with the 16F877A code on MPLAB XC8

    void __interrupt() myISR(void) { if (INTCONbits.INTF == 1){ //INTF flag raised, so external interrupt occured PORTBbits.RB1 =1; PORTBbits.RB1 =0; INTCONbits.INTF = 0; } } void main() { TRISB0 =1; TRISB1 =0...
  4. S

    [PIC] Help with Zero Crossing Detector with the 16F877A code on MPLAB XC8

    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...
  5. S

    [PIC] Help with Zero Crossing Detector with the 16F877A code on MPLAB XC8

    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...
  6. S

    [PIC] Help with Zero Crossing Detector with the 16F877A code on MPLAB XC8

    lol i feel stupid now thank you :) 1658967741 when you are referring to Z0 you mean ZC
  7. S

    [PIC] Help with Zero Crossing Detector with the 16F1517 on MPLAB XC8

    ok so its in C Correct if so what do you mean by the delay
  8. S

    [PIC] Help with Zero Crossing Detector with the 16F877A code on MPLAB XC8

    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...
  9. S

    [PIC] Help with Zero Crossing Detector with the 16F1517 on MPLAB XC8

    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 =...
  10. S

    [PIC] Help with Zero Crossing Detector with the 16F1517 on MPLAB XC8

    so i am really stupid i didnt know that the code was in c++ i was already assuming it was in c
  11. S

    [PIC] Help with Zero Crossing Detector with the 16F1517 on MPLAB XC8

    [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...
  12. S

    [PIC] Help with Zero Crossing Detector with the 16F1517 on MPLAB XC8

    i am not code savy to build my own i have tried for this past month but no advail.
  13. S

    [PIC] Help with Zero Crossing Detector with the 16F1517 on MPLAB XC8

    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...

Part and Inventory Search

Back
Top