Position: Home > Blog Center > Project Solutions > Low Cost Custom Prototype PCB Manufacturer 2011 > 2011/08 > 2011/08/05 >

Project Solutions (2011/08/05)

Index

Four in a Row: Play against each other or against the micro! 2

Published:2011/8/5 7:21:00 Author:Amy

By Steve Teal Operation When used in combination with shift key SI, column switches 1 to 7 (S2 to S8) have a different function. To access these func­tions you first have to hold down the shift key, then momentarily press the required column switch. The shift key can then be released again. Switch Function 1 New game 2 Undo t...   (View)

View full text | Comments | Reading(448)

Four in a Row: Play against each other or against the micro! 1

Published:2011/8/5 6:59:00 Author:Amy

By Steve Teal Apart from playing against another human opponent you can also play against the microprocessor. A handy ’undo’ function is included, which lets you correct any mistakes you made (usually some silly move!). The game First we’ll explain the rules, just in case you’re not familiar with them. Four in a row is normally played with two play­ers, ...   (View)

View full text | Comments | Reading(703)

Goodbye '16, welcome PIC 18F: meet the PIC18F series (part1) 3

Published:2011/8/5 6:34:00 Author:Amy

By Ron Coates Indirect addressing If you thought, direct addressing was good, things get even better with indirect addressing. This is because we have a 12-bit number to use for addressing, giving us direct access to all 16 banks. After all, both 2** and 16x256 equal 4,096. First of all, there are now three FSR registers, FSR0, FSR1 and FSR2. Associated with these are three ...   (View)

View full text | Comments | Reading(1063)

Goodbye '16, welcome PIC 18F: meet the PIC18F series (part1) 2

Published:2011/8/5 6:08:00 Author:Amy

By Ron Coates Direct addressing Direct addressing is much easier than with the P1C16F series and we’ve reasons to doubt if most programs will need to use banking commands at all. As you will see from the memory map, the first half of bank 0 and the second half of bank 15 have been desig­nated as the Access Bank. From reading the Microchip data sheet, you would think tha...   (View)

View full text | Comments | Reading(835)

FreePICProg: cheap'n easy PIC programming

Published:2011/8/5 1:53:00 Author:Li xiao na

By David Daamen The PocketPong game found elsewhere in this issue was designed around a PIC18F452 for which, we have to admit, no suitable programmer was ever published in this magazine. Sure, investing in a commercially produced programmer is an option, but making one yourself is cheaper and much more fun, too! We reckon th...   (View)

View full text | Comments | Reading(1270)

USB EMBEDDED HOST CONTROLLER (4)

Published:2011/8/5 1:43:00 Author:Phyllis

By Mark Schultz Using the frameworks to read a USB Flash drive Now it is time to create some application code that actually does something. At this point, we have created a driver and have a means to match it up to a device by class and subclass matching. Next up is to add code to the driver for its start an...   (View)

View full text | Comments | Reading(641)

Pocket Pong: a primeval game cast in modern hardware (2)

Published:2011/8/5 1:41:00 Author:Li xiao na

By Andy Morell Operation The game is played using two potentiometers and two switches. SI serves to serve a ball. S3 is the speed selector. When it is closed, the ball moves faster making the game more difficult to play. There is a connection for a third switch (S2) but this is not used in the Pong game. P3 and P4 may be ordinary rotary potentiometers but slide pots will of cour...   (View)

View full text | Comments | Reading(480)

USB EMBEDDED HOST CONTROLLER (3)

Published:2011/8/5 1:21:00 Author:Phyllis

By Mark Schultz Framework Flow The framework code will execute as follows. On power on reset, the EZ-Host microprocessor will initialize all registers and counters as well as all device structures. It will then enter a loop: -Check the host USB ports for any changes in status (devices inserted or remov...   (View)

View full text | Comments | Reading(453)

Pocket Pong: a primeval game cast in modern hardware (1)

Published:2011/8/5 1:18:00 Author:Li xiao na

By Andy Morell Provided they manage to recognize them in the first place, youngsters will label classics like Pacman and Pong as video games although historically they are ’video games’, the concept behind them dating back to the 1950’s. In this article you’ll find a modern (computer) version of such a prehistoric game that — as far as we are concerned — has not lost any of its compulsive c...   (View)

View full text | Comments | Reading(456)