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.
This platform will be extended to two axes. video results shows, only by changing the proportional gain of the PID controller. Direct mounting of the motor to the axle creates some friction. Now platform is getting ready for its second axis. Anyone need information about project or for better...
Hi all
This code is working on Proteus as well as tested on 18F452 (Master) and 16F877a (Slave).
Compiler- MikroC
I tried this one several times but it didn't work. When I changed the inbuilt "Spi_read()" command and used direct Registry reading as in the data sheet. Then it worked.
Master...
Hi
I need to count the loop time(start to end) in milliseconds for each endless loop cycle. I use 18f452 PIC and this loop time is finding to maintain constant loop time in endless loop. Please anyone can give an idea. then I can continue in implement it.
thanks
Hi Ram Prasadh
thank you, I' ll try and post my results, but I have exams in these two weeks. As soon as possible I will change my configuration, my burner software is picpgm.
thank you
Hi
sometimes it may be usefull PIC external interrupts to your input, you can turn on portB pullups and make it work. I completed a high speed encoder reading using PIC 18f452 B0, B1, B2 interrupts. If you want I can post it.
latest code, but still problem remains, do you have any working example code or link.
// code for spi slave
void main()
{
unsigned int buffer, gdata =0;
int c=7;
trisb.f7=0;
trisb.f6=0;
trisa.f5=1;
trisc.f4=1;
trisc.f5=0;
trisc.f3=1;
Spi_Init_Advanced(SLAVE_SS_DIS, DATA_SAMPLE_MIDDLE...
Thank you btbass!
But still problem remains. Now I'm going to do this without inbuilt functions. and try to do this manually. I'll come with my results soon. And I want to know how can I add Helpful icon.
Thank you again.
---------- Post added at 20:38 ---------- Previous post was at 18:41...
I used MikroC compiler. Default Spi_init() initiate followings.
Default settings are: Master mode, clock Fosc/4, clock idle state low, data transmitted on low to high edge, and input data sampled at the middle of interval.
Advanced settings allows below types only
MASTER_OSC_DIV4 // Master...
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.