Continue to Site

Welcome to EDAboard.com

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.

Recent content by Solar000

  1. S

    Run multiple functions simultaneously μC using C

    It looks very helpful, someone else told me to use struct also .I will try to use the example with my code and post parts i may need corrections. Thank you very much. I know pic16 is a little old but now i have to finish the project using this, plus it has many outputs i needed. I wanted to ask...
  2. S

    Run multiple functions simultaneously μC using C

    I understand your last post but its a difference maybe i didnt say.I dont use buttons to activate solenoids or motors so i can't trigger interrupts externally. I want to pre program the uC and run it after (without using keys). (
  3. S

    Run multiple functions simultaneously μC using C

    Is it possible to post a code example based on post 8? because i am not sure i fully understand it.I am afraid that this control loop will activate ports the same times so all motors or solenoids will move every same and its not what i want. If with this control loop i can activate different...
  4. S

    Run multiple functions simultaneously μC using C

    Ok if FvM wants to post some examples of a central scheduler with events please do as i have difficulties to find ones. Klaus i think generally you can with posix threads but my pic doesnt support that, so if i dont find schedule events working as i want and cant run two functions then i will...
  5. S

    Run multiple functions simultaneously μC using C

    Here are some parts of my functions i want to start running simultaneously void Movement(){ TRISD = 0x00; PORTD = 0x00; PORTD=0b11111111; //activate the solenoid on port D Delay_ms(50); PORTD=0b00000000; //stops it } void Movement2(){ TrisC = 0x00; PortC = 0x00; PORTC=0b00000110...
  6. S

    Run multiple functions simultaneously μC using C

    Think generally a robot when you want to move its right hand up and down every 200ms for a total 2 mins and its left hand up and down every 400 ms for a total again 2 mins.This process should start the same time and time losses will be the same(same construction, at least theoritically). I will...
  7. S

    Run multiple functions simultaneously μC using C

    I think not because i will need more precision but it can work for a start. Can anyone provide an example or a link with this timer system control loop? Multithreading is not clear if its possible yet. Thank you
  8. S

    Run multiple functions simultaneously μC using C

    Right now i am using solenoids so there are on/off operated. I will search about timer interrupts with schedules, but i dont want the first motor or solenoid to stop when interrupt is executed. Multithreading in uC ? Are there any uC supporting multithreading ?
  9. S

    Run multiple functions simultaneously μC using C

    Hello, i am using microC to program pic16f877a to operate motors and solenoids. I have some functions making motors move at different space times,for ex. motor1 moves for100ms,stops,moves again for 100ms etc. for 4 loops, motor2 for200ms and so, but i want these functions to start the same time...
  10. S

    Delay_ms with variable using microC

    Hello, i am trying to use Delay_ms function with a variable which i calculate from another function and i want to pass it to the function with the Delay_ms. I know that Delay_ms is better from Vdelay and works with numbers and constants. So this works : const unsigned long y=60000/x...
  11. S

    [SOLVED] Rotational motion to Linear motion

    Thanks,it looks helpful and i will try it. Can i buy any pressure gauge to take the machanism or only bourdon tube ? because its difficult to find that kind of gears alone.
  12. S

    [SOLVED] Rotational motion to Linear motion

    Hi, i am trying to build something like that, but for linear to rotary motion. Is it possible to make the angle bigger? For example, pull 5mm and as a result to rotate 50-60 degrees, not 5-10. How i can do that? with gears?
  13. S

    Pic 16f877a solenoid code

    It is portD -> resistor 1k 2W-> MOSFET FDD86110 (and Connector TERMINAL BLOCK) https://www.farnell.com/datasheets/1755769.pdf
  14. S

    Pic 16f877a solenoid code

    Can i set port D to digital output or its only for port A ?
  15. S

    Pic 16f877a solenoid code

    I haven't set pins to digital.Should i set to digital?

Part and Inventory Search

Back
Top