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.
yes this is a 7 segment display, and it's originally written for PIC18F45k22 but I try to used with 18F4520, when I compile following error(please see the image) comes up.
#include "Display_Utils.h"
unsigned short shifter, portd_index;
unsigned int digit, number;
unsigned short...
portd_array[3] = mask(digit);
Please describe the meaning =mask(digit);
here digit is unsigned integer and Portd_array[3] is an array
I got this from mikeoC code;
This is the code;
#include "Display_utils.h"
unsigned short shifter, portd_index;
unsigned int digit, number;
unsigned short portd_array[4];
void interrupt() {
PORTA = 0; // Turn off all 7seg displays
PORTD = portd_array[portd_index]; // bring appropriate...
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.