xGoat
More tea please.

Feel the power

:-D

Posted at 6:50 pm on Monday 20th November 2006

Timer Insanity

Today was MSP430 timer day. I spent an hour or two programming the MSP430. I first got timer B running off the watch crystal. Worked fine.

Then it became apparent that this would only allow the MSP430 to be asleep for 8 seconds at a time. If I want to be really low power this wasn’t a good thing. So I thought for a moment and then realised that, using the timer peripheral’s insane output module, I could get Timer A to generate a 0.5Hz (or lower) clock that I could then use to clock Timer B. The net result of this is that the MSP430 can stay asleep for about 97 days without waking up to increment the timestamp :-) I got this setup working, so now it can sleep for extraordinary amounts of time!

Thought about I2C for a short period as well, and came to the following conclusions:

I’ll work on the I2C code next I think. I’ll need to have a bus master for it to communicate with, so I’ll set up the gumstix to communicate with it. In order to make sure that I know what I’m doing when it comes to I2C and linux I’ll plug in a PCF8574 IO expander onto the bus first.

Posted at 7:21 pm on Sunday 19th November 2006

MSP430 Functionality

Things that have happened since yesterday:

Posted at 5:37 pm on Saturday 18th November 2006

MSP430 on a PCB (finally)

Haven’t written much over the last few weeks (been busy with train usage and other things). Last wednesday I made a pcb for adapting between a 64 pin LQFP and DIP. On sunday I destroyed it by being incompetent. Today I remade it (in about 1 hour 15 minutes) and soldered an MSP430F169 onto it with no problems. Here’s the result:

MSP430F169 on PCB

Next stage: connect it up. That’ll happen tomorrow.

Posted at 12:27 am on Tuesday 14th November 2006

avahi… mmmm… yum.

Over the past few days I’ve been working on a yum plugin that will pick-up local yum repository mirrors using avahi. It wouldn’t have taken that long to sort out if I hadn’t failed to read the bit of the dbus tutorial I was reading that said I’d need “import dbus.glib” to make callbacks work.

I spent many hours trying to work out what was going on. Steve found the problem with me not importing dbus.glib. Thanks Mr Steve.

I’ve put the code up here. It’s a git repository. Grab it using:

git clone http://www.ecs.soton.ac.uk/~rds204/yum-avahi/.git

There are two python files: repos_announce.py and repos_listen.py

repos_announce.py: This is to be run on the server. It uses avahi to tell the rest of the network that a yum repository is available locally. It points to the http server that it runs which servers the “conf” file, which contains the configuration for the various yum repositories.
repos_listen.py: This is the yum plugin. Stick it in the yum plugins directory (defaults to /usr/lib/yum-plugins). The yum plugin also requires a configuration file called “repos_listen.conf” which sits in the yum plugin config directory (/etc/yum/pluginconf.d), and this needs to contain:

[main]
enabled = 1

Currently it will only attempt to grab repositories that you already have configured.
I reckon it’s a relatively safe thing to have enabled even in potentially unfriendly networks, as long as you have gpgkey checking enabled.

Comments welcome.

Posted at 2:31 pm on Thursday 2nd November 2006
2 Comments

MSP430 Dev Tools

I wanted some RPMs containing the work from mspgcc. I came across CDK4MSP. Downloaded the RPMs. Installed. Appears to work.

Posted at 10:32 pm on Wednesday 1st November 2006

Site by Rob Gilton. © 2008 - 2019