+ Post New Thread
Results 1 to 6 of 6
  1. #1
    Full Member level 3
    Points: 2,997, Level: 12
    Achievements:
    7 years registered

    Join Date
    Nov 2007
    Location
    Bangalore
    Posts
    173
    Helped
    15 / 15
    Points
    2,997
    Level
    12

    Remote programming ,read back and default program setting

    Hi,

    I have a task to remotely program frequency selection bits of a RF transmitter.
    The transmitter provides a 16 bit selection pins interface.I accomplished this task by
    making a serial to parallel bit converter circuit using some general purpose digital ICs .
    I send a 16 bit frequency select command along with clock and enable pulses.This works
    just fine.But my supervisor is asking to put some more features in this project.
    1.read back for the set frequency bits,to check if the bits are correct or else send the frequency select bits once again in case earlier frequency bits were in error.
    2.To have a default frequency selection bits set,which must be selected on just turning ON the transmitter,but these default bits can be over ridden by a new 16 bit command.

    I am open to use a microcontroller based solution
    I will be even more pleased,if some one suggests a non microcontroller based solution,as I am not very much familiar with microcontrollers.

    Thanks in advance

    •   AltAdvertisement

        
       

  2. #2
    Advanced Member level 5
    Points: 23,591, Level: 37
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    4,525
    Helped
    996 / 996
    Points
    23,591
    Level
    37

    Re: Remote programming ,read back and default program setting

    Obviously using two microcontrollers would work.

    But, you could use an approach using shift-registers and latches. You would have a transmit shift register and a receive shift register at each end. Something like this:

    1) Set enable high.
    2) Shift data into receive shift register.
    3) When enable goes low, transfer the SR data to your transmit SR.
    4) Clock data out of your transmit SR.

    You would have to figure out the details: clocking, etc.

    But, since your supervisor is paying for you to do this, it might be a good excuse to actually learn about microprocessors.



    •   AltAdvertisement

        
       

  3. #3
    Full Member level 3
    Points: 2,997, Level: 12
    Achievements:
    7 years registered

    Join Date
    Nov 2007
    Location
    Bangalore
    Posts
    173
    Helped
    15 / 15
    Points
    2,997
    Level
    12

    Re: Remote programming ,read back and default program setting

    Quote Originally Posted by barry View Post
    Obviously using two microcontrollers would work.

    But, you could use an approach using shift-registers and latches. You would have a transmit shift register and a receive shift register at each end.
    Thanks Barry

    I have time constraint to implement this,it would be great help if you can give some reference of similar application or at least explain with block schematic for both microcontroller and latch based approaches.



    •   AltAdvertisement

        
       

  4. #4
    Advanced Member level 5
    Points: 23,591, Level: 37
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    4,525
    Helped
    996 / 996
    Points
    23,591
    Level
    37

    Re: Remote programming ,read back and default program setting

    Maybe you should first make a block diagram of what you think this should be. And maybe a flow chart.

    Without thinking too hard, I’m imagining a loadable SR whose load pin is driven by a power-on-reset signal. Basically what you want here is a UART. How do you presently handle the data in? Is it ok that the frequency select bits are changing every clock cycle as data is shifted in? If not, then you’ll need to put a latch between the SR and your xmitter.



  5. #5
    Super Moderator
    Points: 75,593, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,337
    Helped
    3491 / 3491
    Points
    75,593
    Level
    67

    Re: Remote programming ,read back and default program setting

    Hi,

    I agree with Barry.
    Currently we just know "16 bit" and "remote".

    But nothing else.
    It's your job to collect all the requirements.
    Voltages, distance, timing, power supply...flow, what's the source of the bits, what's the target of the bits...and so on.

    The more detailed your informations, the faster and the better is our response.
    (And - we do this for free, thus it's more motivating when we see your own effort)

    Klaus
    Please don´t contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisement

        
       

  6. #6
    Advanced Member level 4
    Points: 6,209, Level: 18
    kripacharya's Avatar
    Join Date
    Dec 2012
    Location
    New Delhi
    Posts
    1,198
    Helped
    180 / 180
    Points
    6,209
    Level
    18

    Re: Remote programming ,read back and default program setting

    It seems that if the requirements are going to grow, then a microcontroller is probably better way to go. It is much more flexible, easier to use, smaller AND cheaper overall.

    - - - Updated - - -

    I suggest the Arduino Pro Mini Atmega328. Along with a development environment - which are usually free - and Usb programmer dongle, you're good to go.

    - - - Updated - - -

    PM me if you need further help



--[[ ]]--