The blog of a dedicated radio amateur and electronics enthusiast

"Having fun on the air and in the workshop - communicating and creating"
Showing posts with label microcontroller. Show all posts
Showing posts with label microcontroller. Show all posts

27 August 2013

Analog Devices AD9850 frequency synthesiser

AD9850 evaluation board, 45mm x 26mm
Connected to MYDEV2 PIC MSSP module for programming
SINA and QP outputs
Another visit to an online auction site and another electronics purchase. This time I spent $9 on an evaluation board for the AD9850 frequency synthesiser chip. Surely the 125MHz 'can' oscillator and the chip itself are individually worth more than that. However it was made in China.
I mounted it on a larger piece of experimenter board and connected its programming inputs to a microcontroller PIC18F4550 on my MYDEV2 PIC development board. Before the AD9850 will produce an output signal it has to be programmed.
So I wrote a few lines of code to use the PIC's Master Synchronous Serial Peripheral ,( MSSP ), interface module to send the 40 bits of frequency, phase and control data to the AD9850.
The resultant output signals are a sine wave ( CH1 yellow trace ) of 1.04V peak-peak directly from the chip's digital-analogue convertor, ( DAC ), and a variable pulse-width square wave ( CH2 blue trace ) of 5V peak-peak via the chip's comparator for use as an external clock.
I have intentionally allowed plenty of space on the experimenter board to fit a dedicated PIC later; probably the PIC18F14K22 as I already have one.
The AD9850 will be a useful signal source and clock generator upto about 40MHz.

14 September 2011

MyDev2 enhanced

Schematic - note Vcc connection depends on usb-powered or self-powered application
I have upgraded to version 3 my PIC MCU development platform, MyDev2, ( first posted on November 2nd, 2010 ), with the addition of pull-down resistors R25-R28 for the keypad rows connections now that I have decided on the method I will use in coding the operation of the keypad and the interfacing required to the microcontroller. I have already started writing the code in 'C' programming language, instead of the 'Assembly' language which I have used for all my PIC projects until now. The keypad will be a 'telephone' style 4 row x 3 column, 0-9, # and * type.
I have also fitted a new microcontroller type, Microchip part PIC18LF4455-I/P, which, as well as being a few cents cheaper than the original PIC18F4550 and PIC18F4685, has an extended operating voltage range, ( denoted by the 'L' in the part number ), down to +2V, as I want to experiment with coding the detection of switching off the power !

12 July 2011

Then there were four

From time to time since the last post, ( 16 June ), I have been populating three more circuit boards; four are now complete. This is not quite the rate of 3 per week which should be achievable, single-handed; what an efficient production line that would be !
During this activity my soldering skills working with surface mount components, some minute, have quickly improved. Surprisingly, I didn't find the 44 pin microcontroller chip to be the most difficult to mount.
Now I will progress further with the case. I have already finished the technical drawings for the top, base, front and rear panels ready for their fabrication. And today a local firm precisely cut the extruded, anodised aluminium sides to the final length.

02 November 2010

MyDev2 replaces MyDev1

PIC18F4550 version
PIC18F4685 version
Schematic - note Vcc connection depends on usb-powered or self-powered application
Development boards for microcontrollers are essential for debugging code and checking hardware peripherals before committing to the final build-configuration.My first microcontroller development board, which I called "MyDev1", has served me quite well; see 25th January. It is a typical, solderless, experimenting board; component leads are a push-fit into the holes. Its limitations, however, began to become apparent; noisy, intermittent connections, lack of flexibility and a real nightmare if I had ever attempted to use it with 40 or even 28 pin microcontrollers and interfacing with several hardware peripherals at once. Having unreliable connections is a really bad situation when the microcontroller is waiting, or looking, for changes.It was therefore time to upgrade to a better system; so I have produced "MyDev2". Now it is much easier to reconfigure for different peripherals, e.g. display, keypad, rotary encoder, comms ports, and to check their operation. Of course, I haven't omitted the LEDs, and "MyDev2" has many, ( different colours for different ports ), as it is always nice to see pretty lights as a visual indication of I/O port output state ! I could not avoid solderless connections entirely; but those are of a high reliability using good quality pin-headers.
"MyDev2" connects to the Microchip ICD2, ( In-Circuit Debugger No.2 ), for programming and debugging operations, thereby replacing my original home-made programmer, ( see 25th Jan, 8:06PM, purple box ).
Using a development board I was easily able to change between two mechanical rotary shaft encoders, ( control with knob ), from different manufacturers, choose the more appropriate one for my final application, and 'fine-tune' the PIC code to suit.
Incidentally, the microcontrollers featured in the pictures above are 40 pin Microchip parts, ( lower ) type PIC18F4685-E/P, and ( upper ) type PIC18F4550-I/P which incorporates a USB interface.