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.
pic16f877a maximum
Hi ceibawx.
Could you give us the detailed description of your project ?
Is your input stream continuous with 256KHz frequency or it's
set of 80-bit separated packages ?
Dou you understand, that at the time of sending received bytes you can
miss the input stream, otherwise...
shift_left pic16f8
Look, int CCS int-type by defaut is same as int8.
Int this loop
b=0;
for (j=0;j<8;j++)
{
b+=eeg[(8*k)+j]*pow(2,j);
}
variable b can be overflowed, because sum of this expression
b+=eeg[(8*k)+j]*pow(2,j);
can be greater than 256. So , you need to define b as...
shift_left function
int eeg[80],b[]; <--- You didn't allocate memory for b[]
According to you code, it should be array with at least 10 elements:
int eeg[80], b[10];
[/b]
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.