This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SCI in RM46l852WT

Other Parts Discussed in Thread: RM46L852, HALCOGEN

Hello,

I am working in RM46l852  MCU

Currently  configured the SCI module ( not SCI/LIN ) as per refernce in SCI_RX.pdf file using halgogen.

but the data communication not happening in the MCU.

After writing the code it shows some warnings in the notification.c file and i want to learn about how to configure the open drain , pull up and pull down in halcogen.

Can any one guide me how to do the configuration for sci communication.

Regards,

KARAN.

  • Hello Karan,

    I have forwarded your question to one of our experts and they will respond soon.

  • Hi Karan,

    Could you zip and send us the HALCoGen Project files ( .HCG and .DIL) to comment better. Thanks!

  • 2678.uart_karan.rar

    Hi sir,

    I included the rar file and give the feedback so that i'll get more knowledge about programming.

    i succesfully debugged the code and flashed in the MCU and want to check the real time communication.

    Can you guide me how to use the K-line driver so that i can able to use more number of  serial ports in a shared bus and also with the configuration  of  multimaster or idle mode in which the MCU need to configure to more serial ports.

    last thing i want to know how to configure pull up and open drain configuration based on the needs.

    Thank u

    Regards,

    KARAN.

  • Hi sir,

    I included the rar file and give the feedback so that i'll get more knowledge about programming.

    Can you guide me how to use the K-line driver so that i can able to use more number of  serial ports in a shared bus and also with the configuration  of  multimaster or idle mode in which the MCU need to configure to more serial ports.

    last thing i want to know how to configure pull up and open drain configuration based on the needs.

    Thank u

    Regards,

    KARAN.

  • Hi Karan,

    I will try to get K-Line experts comment on this.

    On Pull settings with HALCoGen SCI ( Port TAB) you can see the graphical representation of the Pull configurations. Do the necessary settings, Generate the driver and calling sciInit API will do the pull configurations for you.

  • Hi prathap,

    Thanks for kind replying.

    One more thing i want to communicate SCI and SCI/LIN in real time communication(full duplex). can you  guide me how to do in HALCOGEN.send me the some sample program code so that i will explore according to our real time project applications.

    Regards,

    KARAN.

  • Hi,

    Can anyone guide me how to configure SCI (not SCI/LIN ) in HALCOGEN and how to do programming mapping for notification.c file Tx and Rx communication possible.

    kind regards,\

    KARAN

  • 8304.LIN2SCI.rar

    Hi,

    i included the LIN2SCI communication .rar file.

    can anyone point out my mistake where i've make changes in code and in HALCOGEN to make the communication possible.

    thanks,

    KARAN.

  • 3683.LIN2SCI.rarHi,

    I am working in RM46L852 MCU.

    1. I am working on SCI module, SCI and LIN/SCI working individually and echoing the character clearly then I configured both SCI and LIN/SCI according to sample example given in HALCOGEN and trying to communicate both SCI but the communication between both SCI is not happening.

    Where I want to make changes?

    1. Whether I want to make changes in HALCOGEN configuration for port pin Read &Write operation.
    2.  Whether I need to change the program configuration.

    Can anyone guide me where I made a mistake? Tell how to configure the  port read & write  pins in HALCOGEN.

    I enclosed the LIN2SCI.rar file also.

    Kindly,

    KARAN.

  • Hi Karan,

    2816.SCI_LIN_sys_main.c

    Attached is the simple way to use TX interrupt. ( Note : No need of any notification, leave it blank, how it was when generated.. ).

    How are you connecting SCI and LIN ( SCI2) ? Do you have external pull on these lines of 10K on 3.3v ?

     

  • Hi prathap,

    thanks for kind replying

    I am connecting RS-232 driver for communication between one pc to microcontroller to another pc through direct port pins to the corresponding SCI..

    but the transmission is not happening between the sci and sci/lin.

    regards,

    KARAN

  • Hi prathap,

    I want to achieve this communication first after that we are planning to do multimode communication for serial more than one serial node.similiar way we are trying to do CAN and it is progress.

    so kindly guide us.

    thanks

    regards,

    KARAN

  • Hi Karan,

    Let me understand

    1) SCI connected to PC through RS232 Driver Worked.
    2) SCI/LIN connected to PC through RS232 Driver Worked.
    3) When you tried connecting SCI to SCI/LIN it did not work? ( I mean no PC involved here). 

  • Hi prathap,

    thanks,

    yeah you are right first two cases we are using the driver successfully  to echoing the data via PC.

    In third case also we are using PC to communicate between the SCI and SCI/LIN.

    PC----232 driver----- SCI----MCU----- SCI/LIN(via emulator,not H/w flow control)----- -232 driver-PC.

    thanks,

    karan.

  • Thanks Karan,

    PC1---SCI --- MCU---SCI/LIN---PC2

    1) PC1 Transmits
    2) SCI receives,
    3) Through Software in MCU read the Received data from SCI
    4) Through Software take the data and transmit it through SCI/LIN
    5) PC2 Receives

    Is my understanding correct? If this is the used case it is more or less like two independent  SCI communications, which should work. Correct me if this is not used case.. Sorry for long message, I am trying to understand your used case.

  • Hi,

    yeah your understanding is right.

    but the communication is not happening  between the SCI modules.

    regards,

    karan