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.
Hi guys,
I have a packet that I sent out in the following format (X & Y represent bits)
XXXX YYYY XXXX XXXX
When the user selects one of the options, I want to change just the YYYY bits. I am doing this in C. I have read up on bit shifting and can't figure it out. I want to leave the XXXX's...
invalid interrupt vector names for device
Hi guys,
I keep getting the following warning when compiling my program. It is:
serial.c:355: warning: Invalid interrupt vector names for device '24FJ128GA106' are:
U4
The PIC24F128GA106 series has 4 Uarts. I'm not sure why I am getting that...
u1rxreg
Hi guys,
Here is my situation. I am using a dsPIC33FJ64MC802 and it has 2 UART’s. The application I am developing will need access to three UART ports. I will be using two devices on UART1 (not simultaneously) and one on UART2.
My main question is, is the U1RXREG register available...
wdtcon htc
Hi Guys,
I am getting the following errors for some reason. Basically I am using a counter to keep track of how long a button is pressed. The WDT wakes up every 18 ms.
#include <htc.h>
#define BUTTON_INPUT GP0
//Sleep command
void Sleep(void)
{
#asm
sleep
#endasm
}
//main...
wdt timer
Hi guys,
In the spec sheet, it says that the WDT has a:
Time-out period is from 1 ms to 268 seconds
I can't figure out how this is true with the given post-scalar values of the WDT timer.
Here are the values of WDTCON:
WDTPS<3:0>: Watchdog Timer Period Select bits
Bit Value =...
low power usart pic
Hi Kurenai_ryu,
I'll check that in the datasheet today.
My main clock is running that 31 kHz because my program has to sleep and wake up every 8 ms to check inputs. This is mainly to conserve power. I had to enable the watchdog timer to do this and in turn, the watchdog...
16f687 diagram
Thanks guys. My question is, if I left shift them, I will have 8 bits in the ADDRESH register and 2 bits in the ADDRESSL register. Should I not care about the 2 bits in the ADDRESSL register?
clock usart
Does USART operate during sleep mode? In my design, I will need to wait to recieve some data from the HOST and if I recieve that certain data, I will need to send data back. My question is, what if the HOST sends me data while I am sleeping?
Added after 1 hours 20 minutes...
adc result registers justified
Hi guys,
Quick question. What is the best way for me to convert a 10 bit ADC result (it uses two registers - ADRESL and ADRESH to store the results in either a left or right justified manner) into 8 bits? I will need to take that 10 bit ADC result and eventually...
pic18f4550 low voltage programming
Depends what your design goals are. What is it that you want to do? From there, can you decide if this PIC suits your needs by looking at the data sheet. Supplying power should be the least of your concerns
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.