Search the Community

Showing results for tags 'clock'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

  • Community Calendar

Found 15 results

  1. Came across this while browsing. MSP430 Analog Gauge Clock
  2. I'm trying to test the clock functionality available on TIRTOS for the CC1310 SOC from Energia but I'm finding difficulties to make the clock trigger periodically (every 5 seconds in the example). This is what I'm doing so far: #include <ti/sysbios/knl/Clock.h> #include <ti/sysbios/BIOS.h> Clock_Params clkParams; Clock_Struct clkStruct; Clock_Handle clkHandle; Clock_Params_init(&clkParams); clkParams.period = 5000000/Clock_tickPeriod; clkParams.startFlag = FALSE; /* Construct a periodic Clock Instance */ Clock_construct(&clkStruct, (Clock_FuncPtr)clkFxn, 5000000/Clock_tickPeriod, &clkParams); clkHandle = Clock_handle(&clkStruct); Clock_setTimeout(clkHandle, 5000000 / Clock_tickPeriod); Clock_start(clkHandle); I wonder whether Energia is overwriting Clock in some way. Thanks for your ideas, Daniel.
  3. MSP430 based Nixie tube clock. I was looking for some nice Nixie tube digit images so I could add them to my EduKit library, but I couldn't find any usable ones. I decided to just buy few of them and photograph myself. Then I thought that it would be a horrible waste if they just sit in a drawer. So here it is, my first Nixie project since... 1987. This clock will be available as kit, but since this is v1, I will most likely make some adjustments. Any suggestions are welcome.
  4. MSP432 Hi, For the MSP432, in the newer release of energia, is there a way to change from the internal clock to the high-frequency crystal oscillator? Or is there a way to set the DCO clock to different frequencies? (end goal is to use a reliable clock (to time up to 15 seconds) for interrupt control and spi communications) Thanks!
  5. This piece of code was made possible by Trey German, Robert Wessels, and Cathy Wicks of Texas Instruments. Without Trey's knowledge and Cathy's encouragement, I wouldn't have been able to make this program. Robert is the one who told me about this project. When creating 430AlarmClock, I adhered to my usual procedure for designing programs: 0. Make a general outline 1. Get the hardware 2. Write the basic stuff 3. Tweak, test, repeat until it works 4. Add/remove/tweak more advanced features until you are satisfied 5. Publish, add license, do whatever else you need to do I made the outline first. It looked like this: 430AlarmClock.zip
  6. I am currently working on a project that uses the external crystal for the watchdog timer and the internal DSO clock for all other tasks. The crystal is 32kHz. The watchdog timer interrupt is taking care of controlling the state machine in the main loop. At first sight everything looks ok. However, after a while (hours later) the controller (MSP430G2553) appears to be stuck. Closer investigation show that this is due to the watchdog timer interrupt not served, means that the 32Khz clock is not present. I already tried to play with the XTAL capacitor settings to no effect. I am wondering if scope measures could be done in order to see if there is something ongoing in the clock circuit that could point to an issue with the XTAL capacitors, driver circuit, parasitics, etc. However, I do not know what exactly to look for. Can anyone help me here?
  7. Hi everyone! This is my second time on the forum. The first time i was here it was to ask for help with interrupts and an LED display. 43oh was very helpful and I accomplished my goal. Today I am here to ask for help again. Goal: Implement the code previously written into the chip only and drive it without the development board. (breadboard mode) I did some research and most post/websites told me that all i need is 3.3V and a 47k resistor going from VCC to the RST pin on the chip and that my program would start working... I tried this and it did not. reference:http://crossplatform.net/running-msp430-launchpad-on-a-breadboard/ My question is, since I am working with interrupts and my code is a bit complicated, would i need an external clock/crystal? What do i need to move away from the development board and onto the breadboard? Thanks in advanced, everyone here is so helpful!!
  8. I figured you guys might be interested in some of my tinkering with the Launchpad. Hopefully by putting a few of my projects up here it will also keep me accountable for finishing them. This is one a cobbled together a few months ago. It's been up on the MCU projects page on E2E, so you might have already seen it: http://e2e.ti.com/group/microcontrollerprojects/m/msp430microcontrollerprojects/664670.aspx PROJECT OVERVIEW The Vetinari clock is from a book series known as Discworld, where Lord Verinari has a clock in his waiting room which has an irregular tick. The idea of the clock is to add a sense of unease and anxiety to anyone in the waiting room since their brain doesn't filter out the ticks like a normal clock. Here's a video to get a better idea of the result. The tick is actually a lot louder in person. SOFTWARE DESIGN To accomplish this task on a 430, we create an array of possible time frames to tick the clock, and parse through it at 4Hz. The array is 32 entries long, so it equates to 32 seconds in the real world. By randomly setting 32 of the elements high, we create a timing sequence. A high element will generate a tick of the clock. This means a second on the clock can be as little as 250ms, or as long as 24 seconds, and still keep accurate time. Check the attached software too see how it's all done; I did my best to comment it up. main.c HARDWARE DESIGN The clock coil is driven via an alternating polarity pulse. The easiest way to change a load's polarity with an MCU is using an h-bridge. The schematic shown is a simple implementation using two NPN and two PNP transistors. I had the transistors and drive resistors laying around, so this part was easy to cobble together (along with the half used battery holder). It would be easy to use a single IO pin per side of the bridge, but the transistors fit better onto the launchpad, as shown in the image. To add the driving resistors in series, I cut a small gap in the traces, scrapped off the solder mask on either side to make pads, and put down a small SMA resistor. It's not pretty, but it works. In the clock mechanism, there is a small control board with a crystal and epoxy glob IC that normally runs the clock. I just ripped that out and directly attached the coil to the h-bridge. The resulting clock is actually more maddening than I expected in a quiet environment. By using 3V rather than the 1.5V that the original movement used, the ticks are much more pronounced and do an excellent job of ruining a person's calm.
  9. Hello there, *new* Found out the speed of my clock. The problem now is I don't think my interrupt is working. *new* I am doing a project where I have to read in a square wave and determine the frequency of the wave then output that number. I was wondering if someone could help me out by telling me what the base clock speed is. I am programming through energia, idk if that will effect the speed at all, but just in case I am. Hope someone can help me out Thanks a bunch!! if you don't know what energia is energia.nu is where you can find information My code so far This example code is in the public domain. http://arduino.cc/en/Tutorial/AnalogInput */ //LED PINS int ledPin0 = 2;// select the pin for the LED int ledPin1 = 3; int ledPin2 = 4; int ledPin3 = 5; int ledPin4 = 6; //Inputs int sensorPin = A5; // select the input pin for the potentiometer //Variables int temp=0; //int count=0; int count1=0; int number=5; void setup() { // declare the ledPin as an OUTPUT: pinMode(ledPin0, OUTPUT); pinMode(ledPin1, OUTPUT); pinMode(ledPin2, OUTPUT); pinMode(ledPin3, OUTPUT); pinMode(ledPin4, OUTPUT); attachInterrupt(sensorPin,inter,RISING); } void loop() { //Check for Frequency number = 1000000/count1; //Make temp Variable to change temp = number; //Coverts that number to binary //Checks if it need to turn on light 5 if(temp >= 16){ digitalWrite(ledPin4, HIGH); temp = temp - 16; } else{ digitalWrite(ledPin4, LOW); } //Checks for light 4 if(temp >= 8){ digitalWrite(ledPin3, HIGH); temp = temp-8; } else{ digitalWrite(ledPin3, LOW); } //Checks for light 3 if(temp >= 4){ digitalWrite(ledPin2, HIGH); temp = temp - 4; } else{ digitalWrite(ledPin2, LOW); } //Checks for light 2 if(temp >= 2){ digitalWrite(ledPin1, HIGH); } else{ digitalWrite(ledPin1, LOW); } //Checks for light 1 if (number%2 == 1){ digitalWrite(ledPin0, HIGH); } else{ digitalWrite(ledPin0, LOW); } count1 =0; } //Interuppt Routine void inter() { count1=count1++; }
  10. Hi, I'm Daniel and i'm from Colombia. I'm an electronic enginer student and i'm trying to make my own chess clock
  11. This project is an update to the binary clock that I used on my desk. The new version has a lot of new features including RGB leds(WS2812), a bigger microcontroller(The Olimexino-5510 board), capacitive touch and light sensor. My first idea was to have something based on the MSP430G2553, a couple of WS2812 leds and capacitive touch. But after comparing the work i would have to do, and very few rewards to the Olimexino-5510 functionality I quickly reconsidered. The Olimexino-5510 provides quite a few things I wanted: MSP430F5510 Battery Charger USB capabilities Arduino Form Factor So all I had to do was make a nice board that went on top with the stuff I wanted for the clock functionality. WS2812 RGB LEDs The main feature of the Clock is the 6x3 WS2812 RGB led matrix. These leds contain a little controller that accept a serial protocol for the color data and they handle the PWM. They're also chainable meaning that only one pin(D11, LED-DATA) is required to quite all of them. In my using @@oPossum's library Power Supply The Olimexino-5510 has a connector for a battery. But it just connects the battery to the 5V rail, the battery could go as low as 3V. The WS2812 aren't meant to run that low, specifically the Blue led get a lot dimmer. In order to fix this I incorporated a SMPSU that can get 5V from the battery voltage. It could in theory handle as much as 2A. The design was done with TI Webench, all parts are the same as the suggested ones. I had to modify the Olimexino a little to actually give me the raw battery voltage on the shield connector, on battery there's no voltage on the 5V pin, i assumed there was. It all works quite well now except it's kinda whiny. The WS2812 leds are very bright, so in the darkness this might be a problem. One could dim them by sending them a darker color but this reduces resolution. Q2's purpose is to PWM is the 5V that the LEDs in order to dim them externally. This essentially gives another scaling factor for the brightness. It's a similar principle to how dynamic contrast works in TVs. Unfortunatelly this did not work as I wanted, the mosfet was too slow to PWM the leds fast enough without aliasing. My next design will probably contain a mosfet driver. Capacitive Touch Pads I have 4 pads acting as buttons. I originally connected them directly to some pins assuming I had PinOsc hardware like on the value line. Unfortunately I discovered this was not the case too late. I fixed it by adding 2 resistors between each of the pairs. This allows me to do a pretty crappy RC measure. It still works quite good though, i can get about 200 discrete values of the reading. As suggested by TI I had a non solid ground plane of the backside to reduce the intrinsic capacitance. Light Sensor The shield also has a light sensor, meant to measure ambient brightness. One can use this to make the display's brightness match the room. The sensor is connected via I2C, since neither the Arduino nor the Olimexino-5510 have I2C exposed on the pins I will have to do a software solution for this. The TCS34725FN sensor is also capable of measuring RGB color; I'm sure something fun can be accomplished using that. Of course I managed to do the footprint wrong for this, so it required some cutting traces to swap some pins; after that it worked just fine. Eagle Files I also have the schematics in PDF format. Code The current code is mostly made to prove the hardware. It could use a lot more work for the UI. Features Clock Functionality with fading SMPSU Off demo Capacitive Touch Demo Light Sensor Demo USB CDC ported from Energia that i used for debugging so far Everything was compiled with msp430-gcc. I uploaded the firmware using the new f5529 launchpad board due to the fact that mspdebug does not support the olimexino usb bootloader. Parts Most parts I got from digikey, except the Olimexino-5510, the beefy 6600mAh battery and the WS2812 leds. I got a pretty good price for the LEDs from Alibaba at only 13 cents each. I ordered the board through Elecrow, I really needed it to be black. Meta My old clock was this boring thing with an attiny44, using a matrix of green leds. I originally started this version(v2.0) as a school project, but I wanted to share it. Due to the many issues I had I'll probably make a version 2.1(if i fix the shield) or a v3 if I make a standalone board. I'm open to ideas. I still have quite a few board leftover(about 7), i'm open to sending them to people if postage is cheap/free/easy. Imgur album for non-users.
  12. Hi there, I would really appreciate any help here. Assuming ClockVal defined as unsigned long Clockval=0 After executing this 2 lines of code... SysCtlClockSet(SYSCTL_SYSDIV_5|SYSCTL_USE_PLL|SYSCTL_XTAL_16MHZ|SYSCTL_OSC_MAIN); ClockVal = SysCtlClockGet(); What should be the correct value of Clockval? A friend of mine reported 40,000.000 meaning 40 Mhz using IAR, in my case running Keil I get 3,200000 or 3.2 Mhz, does abybody have a clue for this weird value?? Thanks a lot in advance Simao P.S. 1) We both use Stellaris LM4F120 LaunchPad Evaluation Kit P.S. 2) It´s my first post so please bear with me if it´s not formaly correct.
  13. Hi guys Here I am again to ask for help :oops: So the deal is this: I'm waiting for a nokia 5110 LCD screen to arrive and I'm thinking on what I can do with it. My idea was to make something like a clock with a thermometer and, with an accelerometer, when I bounce it it works like a magic 8 ball (I think about a decision I have to make and it "helps" me with a "Yes" "No" and "Maybe" answer). The maginc 8 ball isn't a real issue. I gess that the code is pretty simple (I can use a sample code from the book "Getting started with the MSP430") and that shouldn't be a problem. My problem is about using a RTC chip to deal with the clock. Is that really needed? A MSP430G2542 is capable of doing the job (Thermometer + clock + analog accelerometer reading)? Hope anyone can help me. canibalimao
  14. I'm working on incorporating the option to sync time from a GPS source for my VFD clock. I wrote the code stand-alone for testing - thought it might be useful for some others on the forum. The code is based on oPossum's RTC clock code. Date/Time values are BCD. It could probably be converted to decimal time as well, but BCD works best for my application. A main time variable is available - and would normally be updated through a 1hz timer interrupt, although the interrupt isn't included in this code (I'll probably add that later as an update - but the code to do that is pretty easy). The rtc_tick_bcd function in time.c can be called from the 1hz timer to perform the needed update. Enjoy! GPS_Clock.zip
  15. Found this through hackaday. Sunrise Alarm Clock. Uses a G2553 (Programmed via Launchpad) Uses a DFC-77 Atomic Radiowave Time Receiver for, well, atomic time. Standard Character LCD (via a shift register) (and pwmed backlight) Settings through Pushbuttons Simple Alarm via PWM melody. 10mm LEDS to provide Sunlight (These could/should be replaced with high current 1a/3a type leds imho) And battery backup (with backup status recognition on p1.4 interrupt) via three diodes! A full featured project, though it could use better leds, and unless you are in Europe, a different clock (either standalone rtc, or a regional radio clock source WWV or WWVB in US though I can't find a source for modules) And a complete schematic would be nice (I think they mislabeled which regulator they use, since they have 5v in on a 7805 regulator (5v out), connected to the g2553) http://renaud.schleck.free.fr/reveil.php