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.
G'day atferrari,
Does the 18F4585 have a build in CAN hardware ?
If so find some example software and just use the same settings to start.
A common CAN setup is standard identifiers and 500K bus speeds.
Not knowing anything about the UC I don't think I can help anymore than that.
Darren J.
G'day Help
The problem you have here is in your function declarations
There is no return type specified
on pre-ansi compilers this was allowed and it would assume an int return type.
I believe in the ANSI standard the return type has to be specified.
So add a void return type to your...
Re: Bit Bang
G'day Johnson,
Bit Banging is using "General Pourpose IO" so simulate a communications device like a UART.
In USB ? I gues it would be using GPIO to talk to a RS232 to USB chip.
Darren J.
Re: Basic SPI question
G'day saudrehman,
The SPI protocol has an enable data and clock line.
If you only have one slave on the bus and hold the cs low you only need a data and clock line.
The basic answer to your question is when the master is not sending out data it will not strobe the clock...
G'day,
You should be testing an RTOS on actual hardware, not in an emulated environemt.
You should be able to calculate the timing of the RTOS yourself from the code, infact you should be writing the code with things like max latency in mind. In a small RTOS this will mostly likely just be...
function declared implicit int
G'day,
These errors all look like they are caused by not including the correct headers.
You can import header files with the following:
#inlcude "header.h"
You should find which headers contain the prototypes for the functions you are using and which contain...
This depends on the kernel but most drivers sit on a higher abstraction level than the core kernel.
The kernel will define it's interface to the driver. As the driver just abstracts between the hardware and the kernel the kernel interface is a major factor in driver design.
Because of the...
Re: 16bit DATA TABLE
If CCSC has a limit on the number of array elements, perhaps you could use a two dimentional array.
something like
int16 mybuffer[10][100];
#define getValue(x) (mybuffer[x/100][x%100])
Re: SPI- PIC - SMP
It could be for supporting different spi modes, I think they are called 00, 01, 10 and 11 from memory. However I have seen sampling point options on a lot of different stuff so I don't actually think it has to do with the spi protocol.
Re: Real time app problem
john2020,
Most likely Gomez is right, and your floating point calculations are taking a long time to exacute.
You don't have to have an ICE to find the problem, you could simulate the code in a simulator or trace the assembly through your ISR by hand (not fun)...
Re: Help With Stacks
mhamini,
I think we need a bit more infomation on your problem to help you.
What system are you using PC, Uc..etc
What languge are you using? C, C++, Java ..etc
What exactly does your program do, explain, algorithm, or code please.
What is wrong with the result ? how does...
Re: Serial to Java programs
iscom
I just wrote a serial Java program.
The sun Comms API is a bit crap and Serial ports are not supported on all platforms.
However you can download a third-party one free from www.rxtx.org
It is reccomended all over the web, and it worked fine for me (using...
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.