LIN connectivity

Discussion in 'Embedded Systems and Microcontrollers' started by Aladdin83, Feb 2, 2009.

  1. Aladdin83

    Thread Starter New Member

    Jul 20, 2008
    Hi all,,

    I am using a PIC16F877A microcontroller and I am using both of the PWM/Capture/Compare pins to send out a PWM signal.

    To continue working on the project I need to measure speed which can be done using Capture command but since I am out of Capture/Compare pins I am thinking about adding another microcontroller chip like PIC12F for example.

    does anyone have an idea on how to connect the two chips together to make the PIC16F my master ucontroller and the PIC12F my slave ucontroller.

    I read in the microchip website that there is protocol called LIN but I didnt find much info on how to start, how to connect or how to program the two PICs

    so if anyone have any resources or advice regarding the LIN connectivity I would really appreciate your help

    thank you
  2. beenthere

    Retired Moderator

    Apr 20, 2004
    Why not just use the 877A? It's got 40 pins. If you can apply the speed signal as logic level pulses, then you just measure the time between pulses.