Storing Cookies (See : http://ec.europa.eu/ipg/basics/legal/cookies/index_en.htm ) help us to bring you our services at overunity.com . If you use this website and our services you declare yourself okay with using cookies .More Infos here:
https://overunity.com/5553/privacy-policy/
If you do not agree with storing cookies, please LEAVE this website now. From the 25th of May 2018, every existing user has to accept the GDPR agreement at first login. If a user is unwilling to accept the GDPR, he should email us and request to erase his account. Many thanks for your understanding

User Menu

Custom Search

Author Topic: Square Wave using 25Mhz Crystal oscillator  (Read 17726 times)

TheOne

  • Hero Member
  • *****
  • Posts: 985
    • Amanatsu Games
Re: Square Wave using 25Mhz Crystal oscillator
« Reply #15 on: February 03, 2014, 03:45:24 AM »
Ok after reading and reading, not sure if the signal gen will keep the last know setting when off, but I realized that I have some PIC microchip lying in a desk, I can make my own signal generator like I want http://www.engineersgarage.com/electronic-components/pic18f4550-microcontroller


Let say I made one, I just need square wave, duty cycle 50% but also adding a little deadtime. LCD support seam easy too http://electrosome.com/interfacing-lcd-with-pic-microcontroller-hi-tech-c/


So I just need to be able to change the frequency/period/dead time and save it once changed


I will have full control this way, coding is not an issue for me since I do that as a living (software)


So the controller will be used for managing the LCD and frequency with 2 pin used for the square wave, should be easy to do, I dont know why I did not think about it!




TheOne

  • Hero Member
  • *****
  • Posts: 985
    • Amanatsu Games
Re: Square Wave using 25Mhz Crystal oscillator
« Reply #16 on: February 03, 2014, 06:06:35 PM »
Here one PDF relative to magnetite frequency
http://link.springer.com/article/10.1007%2FBF03157336#page-1


For those who are interested on magnetite


Turbo

  • Sr. Member
  • ****
  • Posts: 271
    • Youtube
Re: Square Wave using 25Mhz Crystal oscillator
« Reply #17 on: February 03, 2014, 07:53:20 PM »
Ok after reading and reading, not sure if the signal gen will keep the last know setting when off, but I realized that I have some PIC microchip lying in a desk, I can make my own signal generator like I want http://www.engineersgarage.com/electronic-components/pic18f4550-microcontroller


Let say I made one, I just need square wave, duty cycle 50% but also adding a little deadtime. LCD support seam easy too http://electrosome.com/interfacing-lcd-with-pic-microcontroller-hi-tech-c/


So I just need to be able to change the frequency/period/dead time and save it once changed


I will have full control this way, coding is not an issue for me since I do that as a living (software)


So the controller will be used for managing the LCD and frequency with 2 pin used for the square wave, should be easy to do, I dont know why I did not think about it!

just use the HPWM command it makes use of hardware PWM you can set the freq, duty, etc in the software real easy.
or just go with high low and pause and lcd is easy too but only when you need a readout if you just need the signal you can set it by in circuit programming and off you go.

TheOne

  • Hero Member
  • *****
  • Posts: 985
    • Amanatsu Games
Re: Square Wave using 25Mhz Crystal oscillator
« Reply #18 on: March 20, 2014, 02:09:12 AM »
My old PIC controller was not working with my Windows 8. I ordered a new programmer PICKIT3 which is working quite well.


Here some shot of my current controller (OPENMEG Controller)


You can adjust the frequency, duty cycle and dead time, values are saved in EEPROM memory so even
if the controller is off, the value are restored when on.


Here some shot of my messy breadboard :)


I need to test the PWM, even if its coded, I need to test to see if that work correctly, but so far I am happy of what I have done in 4 nights including interfacing with the LCD.