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.
From the datasheet of the PIC18F25K22, we know that this mcu have the CCP function which we can capture and record the interval time between two signal from the same input.
I want to use the CCPR4 to record the time. May I know what is the maximum time interval I can get using this CCP...
Hi guys, I want to build a circuit of production counter display where when there is an output from a machine, it Wil produce a count signal n my display Wil start increment one.
The machines are using PLC and different machine will produce different voltage of count signal. Some are 5vdc...
I have a situation on my C programming here and just wondering whether my solution is the correct way:
I have a LED display with particle count sensor and will show 6 digit of seven segment numbers as the count value. The sensor will give voltage input value. The input is from 0V to...
Hi guys... I'm using the 56 bytes of RAM in the DS1307 to store some data. My DS1307 is connected to the PIC18F46K22. But after running a few days, all the data inside the RAM will suddenly become zeros. The time in the RTC is still accurate but it's just that all the data in the RAM has become...
Hi guys, I'm using the PIC18F46k22 mcu and I'm using two function in my high priority interrupt routine:
#pragma code My_HiPrio_Int=0x0008
#pragma interrupt chk_isr
void chk_isr(void) /*Serial...
I know this is a very dumb question but can I connect a POE switch to a non POE switch?
My building has 3 floors and I have a few POE devices in each floor. So, I plan to put a POE switch in each floor, that means I have 3 POE switch. All the devices will have to connect to my main...
I'm using PIC18F25K50 for my project here. And I'm using the HIDRxHandleBusy to receive data from a host.
When there data is received: HIDRxHandleBusy(USBOutHandle)=0;
When data is cleared: HIDRxHandleBusy(USBOutHandle)=1;
Is this a correct assumption?
Just want to know in what...
Currently using PIC18F25K50 and will use its USB-HID communication to communicate with PC.
But it the USB will always hang after a while. I know this because when my PC send data to it, it does not respond. Below is the part of my main loop coding:
Hi guys... currently studying about WDTEN bit on my PIC18F25K50.
From the data sheet, it is written:
WDTEN<1:0>:Watchdog Timer Enable bits
11= WDT enabled in hardware; SWDTEN bit disabled
10= WDT controlled by the SWDTEN bit
But I saw from sample coding, they write:
WDTEN=ON or WDTEN=SWON
Normally when we receive a protocol, it will contain a byte (normally: 0x03 or 0x04) to indicate the end of transmission.
But if the protocol have no end byte, how do we know the transmission end?
I have a relay application like the circuit below.
My relay spoils after around 100 times of ON/OFF only.
My question is, is my design create lot's of voltage spike when turning ON/Off the relay? Is it the spike that caused my relay spoils?
I have put the diode to suppress the...
Currently doing a project using PIC18F25K50 which I connect its USB interface with Device A. I'm also using this mcu to control a 240VAC relay and this relay will on or off device B. My problem is, everytime I turn on the relay, the USB connection will disconnected.
Is it something to do with...
Anyone would like to share with me the coding in C programming about how to write and read flash memory in PIC18F25K50?
The datasheet did have some info about it but it is in assemble language which I'm not familiar.
Really appreciate you guys help.
Hi there, I have a firmware here using PIC18F67J50. I found out that when storing data to flash, it uses 0x7000 as the start address.
Now I want to use PIC18F25K50, can I start storing data too from 0x7000?
I can't find anything in datasheet regarding the starting address..
I have a master device which will communicate with 2 slave device using RS485. These 3 devices is connected together. These 2 slave device each have different ID, let say it's ID 1 and ID 2. If master device transmit data to slave ID1, only slave ID 1 will reply. If master device transmit data...
Currently my application of the pic is to become a converter of serial to usb. In other words, whatever I received on my serial side, I will transmit it out using USB port. I'm using baudrate of 9600.
I know that we have to call USBDeviceTasks() every 1ms right? I put USBDeviceTasks()...
Just want to know, when using USB-CDC, we need to install the USB driver in pc right? Then how bout in android device? Can the USB-CDC driver be install in android device?
Currently trying to interface my PIC with an android device through the USB port. At the beginning I'm using the...
I'm trying to create a converter which convert RS485 signal to USB signal using PIC18F25K50. In other words, whatever I received on the RS485 side, I will straightaway transmit it out through the USB port.
I will describe my application. I have a device A and a device B which both using...