| Electronic Components Datasheet Search |
|
TDC-GPX Datasheet(PDF) 37 Page - ams AG |
|
|
|||||||||||||||||||||||||||||
TDC-GPX Datasheet(HTML) 37 Page - ams AG |
|
37 / 54 page ![]() TDC-GPX acam-messelectronic gmbh - Am Hasenbiel 27 - D-76297 Stutensee-Blankenloch - Germany - www.acam.de 36 3.12 Measurement Flow In the following we shows a typical example of register settings and measurement flow in G-Mode. Task: Typical application laser rangefinder Measuring Stops on 2 channels, rising and falling edge, within a window of 1 µs from Start. //****** G-Mode, Stops against single Start ********** PuResN=Low; // Power-up reset PuResN=High; StopDis1 = High; // Disable inputs StopDis2 = High; StopDis3 = High; StopDis4 = High; // write configuration registers: _oupd( 0,0x00000FF); // Rising and falling edges, Start ringoscil. _oupd( 1,0x5050500); // Channel adjust = 5 for each second stop channel _oupd( 2,0x0050001); // G-Mode, channel adjust = 5 _oupd( 3,0x0000000); // Use differential inputs _oupd( 4,0x6000000); // Mtimes trig. by Start, EFlagHiZN _oupd( 5,0x0E00080); //StopDisStart, StartDisStart, StartOff1 = 10ns, MasterAluTrig _oupd( 6,0x0100000); // StartOff2 = 20ns _oupd( 7,0x0141FB4); // Res = 41.1523ps, Mtimer = 1µs _oupd(11,0x7FF0000); // Any error -> ErrFlag _oupd(12,0x2000000); // Mtimer -> IrFlag _oupd(14,0x0000000); _oupd( 4,0x6400000); // Master reset StopDis1 = Low; // Enable inputs StopDis2 = Low; StopDis3 = Low; StopDis4 = Low; do { while(IrFlag=Low); // Check interrupt flag while((EF1=Low)or(EF2=Low)) // Check empty flag { if (EF1=Low) // Data on IFIFO1? { data = _inpd(8); // Read IFIFO1 Chan = 1; // Channel# Edge = ((data & 0x0400000)>>26) + 1; // Get edge Time = (data & 0x3FFFFF); // Get time Stop-Start Printf(Chan,Edge,Time); } if (EF2=Low) // Data on IFIFO2? { data = _inpd(9); // Read IFIFO2 Chan = 2; // Channel# Edge = ((data & 0x0400000)>>26) + 5; // Get edge Time = (data & 0x3FFFFF); // Get time Stop-Start Printf(Chan,Edge,Time); } } Alutrigger = High; // Master reset Alutrigger = Low; } while(!quit) Member of the ams Group |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |