--- In l..., jagannath ojha wrote: >
> hello i want some advice regarding the code of uart like we can on and off
> some loads L1 L2 L3 L4, with the I2c, or the computer input plz suggest
me..
> --
> with regard's
> jagannath ojha ( R & D Dept.)
> DCD pvt ltd NOIDA -59
>
Please post your question with a new Subject line. You have jumped on top of
another thread and it gets confusing.
Step by step, what do you want your system to do?
It seems like you have some output signals you need to create that will control
the loads - see the User Manual for GPIO. It then seems you want to control
these GPIOs with a serial port or I2C port. The user manual regarding the UART
and I2C gadgets.
Which processor are you using? There is a LOT of sample code around for each of
the gadgets (UART, I2C, GPIO) but you're going to have to search for it.
Reply by roelof 't Hooft●January 6, 20112011-01-06
On Thu, 2011-01-06 at 16:52 +0200, Timo wrote: > However, whatever it is he is talking about, I/we can
reckon that it has
> nothing to do with "Driver CAN problem olimex LPC2129".
I noticed that when I clicked the send button
otherwise I would have said something about hijacking
a thread :-)
roelof
Reply by Timo●January 6, 20112011-01-06
On 01/06/2011 04:44 PM, roelof 't Hooft wrote: > On Thu, 2011-01-06 at 19:18 +0530, jagannath ojha
wrote:
> >
> >
> > hello i want some advice regarding the code of uart like we can on and
> > off some loads L1 L2 L3 L4, with the I2c, or the computer input plz
> > suggest me..
>
> I (or I might write "we") have no clue what you are
> talking about.
However, whatever it is he is talking about, I/we can reckon that it has
nothing to do with "Driver CAN problem olimex LPC2129".
--
Timo
Reply by roelof 't Hooft●January 6, 20112011-01-06
On Thu, 2011-01-06 at 19:18 +0530, jagannath ojha wrote: > hello i want some advice regarding the code of uart
like we can on and
> off some loads L1 L2 L3 L4, with the I2c, or the computer input plz
> suggest me..
I (or I might write "we") have no clue what you are
talking about. What is it that you are asking, certainly
not us doing your job, right ?
I would like to suggest to you : use Google !
roelof
Reply by jagannath ojha●January 6, 20112011-01-06
hello i want some advice regarding the code of uart like we can on and off
some loads L1 L2 L3 L4, with the I2c, or the computer input plz suggest me..
--
with regard's
jagannath ojha ( R & D Dept.)
DCD pvt ltd NOIDA -59
Reply by rtstofer●January 5, 20112011-01-05
The 'other' way to solve this problem is to use Google and search for
'lpc2129 CAN example code'.
There is a complete CAN example for the LPC2129 and the GCC toolchain.
Regardless of the toolchain, it just makes sense to start with code that
probably works.
Read the one paragraph write-up and follow the link for the code files.
Richard
Reply by simonb65●January 5, 20112011-01-05
I'm not laughing at you! I am simply asking you questions in the hope that
you may see the answer for yourself and learn by methodically working this out.
You will not get far in any engineering job unless you can problem solve.
This is nothing to do with CANbus, this is 'basic' first step embedded
engineering.
As I said, Start from the ground up ... don't look at the details of CAN
and message packets until you have the hardware wired and CONFIGURED correctly
(another BIG hint).
It took me about 30 seconds to see the problem, I am not going to do the work
for you, but I will help you to solve problems by pointing you in the right
direction. All you need to do is to read the comments I post, understand them,
understand the problem and the solution will be obvious.
Just put some thought into it.
Simon.
--- In l..., "zied130187" wrote: > why you're laughing at me ?!
>
> i'am not happy and i'am not sad ,
> it's normally to configure correctly or no !
>
> you just to read the datasheet and applicate.
>
> i post my question to help me.
>
> i am a beginner with BUS CAN
> and i need some peoples to resolve with me some problem.
>
> thank you for your helpfullness
>
Reply by zied130187●January 5, 20112011-01-05
why you're laughing at me ?!
i'am not happy and i'am not sad ,
it's normally to configure correctly or no !
you just to read the datasheet and applicate.
i post my question to help me.
i am a beginner with BUS CAN
and i need some peoples to resolve with me some problem.
thank you for your helpfullness
Reply by zied130187●January 5, 20112011-01-05
hello,
thank you for your response
--- In l..., "simonb65" wrote: >
> Where do you set PINSEL so that the pins use the CAN peripherals? >and do you
set both RX and TX for CAN1 and CAN2 .....
i have set PINSEL in can_init()
void can_init(void)
{
....
can_baudrate(125); // for 125k bit rate
PINSEL1|=0X00054000; // select can1 rx , can2 rx and tx (0000 0000 0000 0101
0100 0000 0000 0000)
.....
} > even though you only receive on one channel, it has
to acknowledge
> the message by transmitting back!!!! Have you read how CAN works??!
yes i read the protocol CAN.
well , i must to add the interrupt function receive CAN2
and the function transmit CAN1 ?
but what is the form of frame i must to send.
my data is :
MSG_CAN temp ={0x00080000,0x00000002,0xABCDEFAA,0x24842484};
thank you
Reply by simonb65●January 5, 20112011-01-05
My last post was a clue to point you in the right direction!
Are you happy you've set the pins up correctly? .... Clue .. Take a closer
look and read my last post!
To solve embedded problems you must be able to methodically debug ... That means
starting from the hardware configuration upwards!
Simon
--- In l..., "zied130187" wrote: >
> hello,
>
> thank you for your response
>
>
> --- In l..., "simonb65" wrote:
> >
> > Where do you set PINSEL so that the pins use the CAN peripherals? >and do
you set both RX and TX for CAN1 and CAN2 .....
>
> i have set PINSEL in can_init()
>
> void can_init(void)
> {
> ....
> can_baudrate(125); // for 125k bit rate
> PINSEL1|=0X00054000; // select can1 rx , can2 rx and tx (0000 0000 0000
0101
> 0100 0000 0000 0000)
> .....
>
> }
> > even though you only receive on one channel, it has to acknowledge
> > the message by transmitting back!!!! Have you read how CAN works??!
>
> yes i read the protocol CAN.
> well , i must to add the interrupt function receive CAN2
> and the function transmit CAN1 ?
>
> but what is the form of frame i must to send.
>
> my data is :
>
> MSG_CAN temp ={0x00080000,0x00000002,0xABCDEFAA,0x24842484};
> thank you
>