Tag Archive: digital


fixed-point digital, signal processor, LQFP-144, -0.3 V to 4.0 V Supply voltage, -0.3 V to 4.5 V Output voltage TMS320VC5402PGE100 absolute maximum ratings: (1)Supply voltage I/O range, DVDD: -0.3 V to 4.0 V; (2)Supply voltage core range, CVDD: -0.3 V to 2.4 V; (3)Input voltage range, VI: -0.3 V to 4.5 V; (4)Output voltage range, VO: -0.3 V to 4.5 V; (5)Operating case temperature range, TC: -40℃ to 100℃; (6)Storage temperature range, Tstg: -55℃ to 150℃.
Image
TMS320VC5402PGE100 features: (1)Advanced Multibus Architecture With Three Separate 16-Bit Data Memory Buses and One Program Memory Bus; (2)4K x 16-Bit On-Chip ROM; (3)16K x 16-Bit Dual-Access On-Chip RAM; (4)Single-Instruction-Repeat and Block-Repeat Operations for Program Code; (5)Block-Memory-Move Instructions for Efficient Program and Data Management; (6)Instructions With a 32-Bit Long Word Operand; (7)Instructions With Two- or Three-Operand Reads; (8)Arithmetic Instructions With Parallel Store and Parallel Load; (9)Conditional Store Instructions; (10)Fast Return From Interrupt; (11)CLKOUT Off Control to Disable CLKOUT.

The TMS320VC5402PGE100 fixed-point, digital signal processor (DSP) (hereafter referred to as the 5402 unless otherwise specified) is based on an advanced modified Harvard architecture that has one program memory bus and three data memory buses. This processor provides an arithmetic logic unit (ALU) with a high degree of parallelism, application-specific hardware logic, on-chip memory, and additional on-chip peripherals. The basis of the operational flexibility and speed of this DSP is a highly specialized instruction set.

This is Logic Digital Tester Circuit. It uses the level input about 5V and use the integrated circuit LM324. Be Main Part electronics perform Drive All LED. Then use Current very low about 10mA by have potentiometer be formed fine the value threshold give just right with the level logic digital both of 3 the level that use by LED1(Green) be the level high and LED2(Red) Be the level LOW and The LED3(Yellow) be the level High IMR . The detail is other please see in the circuit please .

Image

There are many sketches on the Web that provide sample code how to work with MAXIM’s (formerly DALLAS) DS18B20 \DS18S20 digital temperature sensors. However, most of the do not describe the process in details. In this article, I’m going to show the gears that make the whole thing work.

As you should know, DS18x20 family members are relatively accurate digital temperature sensors. They use MAXIM’s 1-wire bus protocol, which requires only 1 wire for receiving and transmitting data (A ground line is also required). Moreover, DS18x20 support so-called parasite power mode, when they drain energy from data bus when it’s high – to charge sensor’s integrated capacitors that will be used as a power source. Sure, they also support normal power scheme, with external supply (and this scheme is used in this article).

Image

 

You can have up to 127 devices on 1-Wire line. To use one of them, a master device initiates a reset pulse, and them receives presence pulse from slave devices. Then he searches ROMs (each produced device has a unique 64-bit ROM code, like serial number. Tiny first part of it defines a family of device, like 0x10 for DS18S20, 0x28 for DS18B20, 0x01 for iButton-DS1990A etc., and all remaining bits are a unique item number. Finally, master device selects the necessary slave device with MATCH ROM [55h] command. (Or transmits broadcast commands).

To get a temperature measurement, we need to issue CONVERT [44h] command. When our sensors receive it, they will initiate data conversion process  – to produce 2 bytes with the measurement. This is relatively slow process, and it can take up to 750 milliseconds, so we have to wait for some time after issuing the command.

All that measurements are stored in a so-called scratchpad – a piece of sensor’s RAM. We can read it – to get the data, and we can also write to it – to set alarm thresholds, to specify sensor resolution (but it’s more advanced topic, and it will not be discussed in this article).

To get a temperature measurement, we need to issue CONVERT [44h] command. When our sensors receive it, they will initiate data conversion process  – to produce 2 bytes with the measurement. This is relatively slow process, and it can take up to 750 milliseconds, so we have to wait for some time after issuing the command.

All that measurements are stored in a so-called scratchpad – a piece of sensor’s RAM. We can read it – to get the data, and we can also write to it – to set alarm thresholds, to specify sensor resolution (but it’s more advanced topic, and it will not be discussed in this article).

To read a scratchpad, we issue a READ SCRATCHPAD [BEh] command. After that, we should receive 9 bytes of data.

Then we can get a temperature according to the following formulae:

Temp =  ((HighByte << 8) + LowByte ) *0.0625

A multiplier of 0.0625 is a conversion coefficient between sensor’s internal values and real temperature – according to 12-bit resolution, each “tick” on sensor’s scale stands for 0.0625 °C.

(do not forget that Temp should be float variable)

To sum up all above, let us write a function that stores the temperature in a global variable, and return true of false depending whether measurement was successful or not:

If there are several sensors in the scheme, this function will give values from each of them in cycles.
 

And here is small circuit schematic for getting started with digital temperature sensors:

Image

 

 

Image

counters are used in most of all digital devices like digital clock, camera, CD/DVD recorder, mobiles etc. to count sequence in the form of pulse. and many project required a counter for counting sequence according to need of project. So in this part we are going to make a Decade Counter using CD4017 IC

Let imagine you want to make a project which count how many times a switch pressed or how many people enter in room. Projects of this type are need a counter to count pulse generated by sensor or by pressing of switch. There are many type of counter based on difference aspects like decade or 4 bit counter, synchronous or asynchronous counter, Up/Down counter, so you need to choose according your project. here we go with decade counter using CD4017
CD4017 decade counter.