Line scan camera with KSDK [ADC + PIT + GPIO]

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Line scan camera with KSDK [ADC + PIT + GPIO]

Line scan camera with KSDK [ADC + PIT + GPIO]

Hello community,

 

This document shows the ease of use of the peripheral drivers from Kinetis SDK applied to the Freescale Cup smart car. This time I bring to you a document which explains how to make the line scan camera with KSDK works step-by-step. This document is intended to be an example for the ADC, the PIT and the GPIO peripheral drivers usage.

 

The required material to run this project is:

 

This material can be bought in The Freescale Cup Intelligent Car Development.

 

45555_45555.pngpastedImage_0.png     45556_45556.pngpastedImage_1.png   

 

The document Create a new KSDK 1.2.0 project in KDS 3.0.0 explains how to create a new KSDK project for the KL25Z MCU. The result of this document is the project BM-KSDK-FRDM_KL25Z.

The document Line scan camera with KSDK [ADC + PIT + GPIO] explains how to implement an application to acquire the data provided by the line scan camera. The result of this document is the project BM-KSDK-FRDM_KL25Z-LINE_SCAN_CAMERA.

 

The video below shows the line scan camera working.

 

 

If you are interested in participate in the Freescale Cup you could take a look into the groups University Programs, The NXP Cup Technical Reports The NXP Cup - Mexico, The NXP Cup - Brazil, The NXP Cup - China, The NXP Cup - Malaysia, The specified item was not found., The NXP Cup - North America, The specified item was not found., The NXP Cup - Taiwan, The NXP Cup EMEA.

 

 

 

Best regards,

Earl Orlando Ramírez-Sánchez

Technical Support Engineer

Freescale Semiconductor

Labels (1)
Attachments
Comments

Hey Earl, 

When I import the project to KDS, the header files  "fsl_clock_manager.h" and  <stdio.h> are not in the project.  Is this a fault on my end? 

Thanks, 

Benjamin 

%3CLINGO-SUB%20id%3D%22lingo-sub-1115555%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ELine%20scan%20camera%20with%20KSDK%20%5BADC%20%2B%20PIT%20%2B%20GPIO%5D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1115555%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%20community%2C%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20document%20shows%20the%20ease%20of%20use%20of%20the%20peripheral%20drivers%20from%20Kinetis%20SDK%20applied%20to%20the%20Freescale%20Cup%20smart%20car.%20This%20time%20I%20bring%20to%20you%20a%20document%20which%20explains%20how%20to%20make%20the%20line%20scan%20camera%20with%20KSDK%20works%20step-by-step.%20This%20document%20is%20intended%20to%20be%20an%20example%20for%20the%20ADC%2C%20the%20PIT%20and%20the%20GPIO%20peripheral%20drivers%20usage.%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20required%20material%20to%20run%20this%20project%20is%3A%3C%2FP%3E%3CUL%3E%3CLI%3ELine%20scan%20camera%20(the%20project%20supports%20up%20to%20two%20cameras).%3C%2FLI%3E%3CLI%3E%3CA%20_jive_internal%3D%22true%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fexternal-link.jspa%3Furl%3Dhttp%253A%252F%252Fwww.freescale.com%252Fwebapp%252Fsps%252Fsite%252Fprod_summary.jsp%253Fcode%253DFRDM-KL25Z%2526lang_cd%253Den%22%20target%3D%22_blank%22%3EFRDM-KL25Z%3C%2FA%3E%20based%20on%20the%20%3CA%20_jive_internal%3D%22true%22%20class%3D%22jivecontainerTT-hover-container%20jive-link-community-small%22%20data-containerid%3D%221%22%20data-containertype%3D%2214%22%20data-objectid%3D%222019%22%20data-objecttype%3D%2214%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fcommunity%2Fkinetis%22%20target%3D%22_blank%22%3E%20Kinetis%20Microcontroller%3C%2FA%3E%20%3CA%20_jive_internal%3D%22true%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fexternal-link.jspa%3Furl%3Dhttp%253A%252F%252Fwww.freescale.com%252Fwebapp%252Fsps%252Fsite%252Fprod_summary.jsp%253Fcode%253DKL2x%2526lang_cd%253Den%22%20target%3D%22_blank%22%3EKL25Z%3C%2FA%3E.%3C%2FLI%3E%3CLI%3EFRDM-TFC%20shield.%3C%2FLI%3E%3CLI%3EMini-USB%20cable.%3C%2FLI%3E%3CLI%3ETFC%20camera%20wire.%3C%2FLI%3E%3C%2FUL%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20material%20can%20be%20bought%20in%20%3CA%20_jive_internal%3D%22true%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fexternal-link.jspa%3Furl%3Dhttp%253A%252F%252Fwww.freescale.com%252Fwebapp%252Fsps%252Fsite%252Fprod_summary.jsp%253Fcode%253DTFC-KIT%22%20target%3D%22_blank%22%3EThe%20Freescale%20Cup%20Intelligent%20Car%20Development%3C%2FA%3E.%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2245555_45555.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2245555_45555.png%22%20style%3D%22width%3A%20460px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F117902iF75BD4546B3D5325%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2245555_45555.png%22%20alt%3D%2245555_45555.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_0.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_0.png%22%20style%3D%22width%3A%20460px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F111537iCF2400E73BF82A64%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_0.png%22%20alt%3D%22pastedImage_0.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2245556_45556.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%2245556_45556.png%22%20style%3D%22width%3A%20168px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F117903iFAEF85484D48A753%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%2245556_45556.png%22%20alt%3D%2245556_45556.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22pastedImage_1.png%22%20style%3D%22width%3A%20168px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F111538i1968A0158F31864E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22pastedImage_1.png%22%20alt%3D%22pastedImage_1.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20document%20%3CA%20_jive_internal%3D%22true%22%20data-containerid%3D%2211234%22%20data-containertype%3D%2214%22%20data-objectid%3D%22106079%22%20data-objecttype%3D%22102%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fservlet%2FJiveServlet%2Fdownload%2F106079-5-298196%2FCreate%20a%20new%20KSDK%201.2.0%20project%20in%20KDS%203.0.0.pdf%22%20target%3D%22_blank%22%3E%3CSPAN%3E%3CSPAN%3ECreate%20a%20new%20KSDK%201.2.0%20project%20in%20KDS%203.0.0%20%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FA%3Eexplains%20how%20to%20create%20a%20new%20KSDK%20project%20for%20the%20KL25Z%20MCU.%20The%20result%20of%20this%20document%20is%20the%20project%20%3CA%20_jive_internal%3D%22true%22%20data-containerid%3D%2211234%22%20data-containertype%3D%2214%22%20data-objectid%3D%22106079%22%20data-objecttype%3D%22102%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fservlet%2FJiveServlet%2Fdownload%2F106079-5-298197%2FBM-KSDK-FRDM_KL25Z.zip%22%20target%3D%22_blank%22%3EB%3CSPAN%3E%3CSPAN%3EM-KSDK-FRDM_KL25Z%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FA%3E%3CSPAN%20class%3D%22defaultSkin%22%3E%3CSPAN%20class%3D%22j-attachment-name-chop%22%3E.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20document%20%3CA%20_jive_internal%3D%22true%22%20data-containerid%3D%2211234%22%20data-containertype%3D%2214%22%20data-objectid%3D%22106079%22%20data-objecttype%3D%22102%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fservlet%2FJiveServlet%2Fdownload%2F106079-5-298520%2FLine%20scan%20camera%20with%20KSDK%20%5BADC%20%2B%20PIT%20%2B%20GPIO%5D.pdf%22%20target%3D%22_blank%22%3ELine%20scan%20camera%20with%20KSDK%20%5BADC%20%2B%20PIT%20%2B%20GPIO%5D%3C%2FA%3E%20%3CSPAN%20class%3D%22defaultSkin%22%3E%3CSPAN%20class%3D%22j-attachment-name-chop%22%3Eexplains%20how%20to%20implement%20an%20application%20to%20acquire%20the%20data%20provided%20by%20the%20line%20scan%20camera.%20The%20result%20of%20this%20document%20is%20the%20project%20%3CA%20_jive_internal%3D%22true%22%20data-containerid%3D%2211234%22%20data-containertype%3D%2214%22%20data-objectid%3D%22106079%22%20data-objecttype%3D%22102%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fservlet%2FJiveServlet%2Fdownload%2F106079-5-298521%2FBM-KSDK-FRDM_KL25Z-LINE_SCAN_CAMERA.zip%22%20target%3D%22_blank%22%3EBM-KSDK-FRDM_KL25Z-LINE_SCAN_CAMERA%3C%2FA%3E%3CSPAN%20class%3D%22defaultSkin%22%3E%3CSPAN%20class%3D%22j-attachment-name-chop%22%3E.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20video%20below%20shows%20the%20line%20scan%20camera%20working.%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CDIV%20class%3D%22jive-video-view%20jive-content-video%22%20data-browse-id%3D%22219677%22%20data-object-id%3D%22106079%22%20data-object-type%3D%22102%22%20data-video-id%3D%223391%22%20style%3D%22width%3A%20520px%3B%22%3E%3CA%20_jive_internal%3D%22true%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fvideos%2F3391%2Fimage%3FsourceObjectType%3D102%26amp%3BsourceObjectID%3D106079%22%20target%3D%22_blank%22%3E%3CIMG%20height%3D%22328%22%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fvideos%2F3391%2Fimage%3FsourceObjectType%3D102%26amp%3BsourceObjectID%3D106079%22%20width%3D%22520%22%20%2F%3E%3C%2FA%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%20%3CP%3E%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20are%20interested%20in%20participate%20in%20the%20Freescale%20Cup%20you%20could%20take%20a%20look%20into%20the%20groups%20%3CA%20_jive_internal%3D%22true%22%20class%3D%22jivecontainerTT-hover-container%20jive-link-community-small%22%20data-containerid%3D%221%22%20data-containertype%3D%2214%22%20data-objectid%3D%222003%22%20data-objecttype%3D%2214%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fcommunity%2Fuvp%22%20target%3D%22_blank%22%3EUniversity%20Programs%3C%2FA%3E%2C%20%3CA%20_jive_internal%3D%22true%22%20class%3D%22jivecontainerTT-hover-container%20jive-link-community-small%22%20data-containerid%3D%2211378%22%20data-containertype%3D%2214%22%20data-objectid%3D%2211379%22%20data-objecttype%3D%2214%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fcommunity%2Fuvp%2Fprojects-documentation%2Fthe-freescale-cup-technical-reports%2Factivity%22%20target%3D%22_blank%22%3EThe%20NXP%20Cup%20Technical%20Reports%3C%2FA%3E%20%3CA%20_jive_internal%3D%22true%22%20class%3D%22jivecontainerTT-hover-container%20jive-link-socialgroup-small%22%20data-containerid%3D%2217%22%20data-containertype%3D%22-2%22%20data-objectid%3D%222403%22%20data-objecttype%3D%22700%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fgroups%2Ftfc-mexico%22%20target%3D%22_blank%22%3EThe%20NXP%20Cup%20-%20Mexico%3C%2FA%3E%2C%20%3CA%20_jive_internal%3D%22true%22%20class%3D%22jivecontainerTT-hover-container%20jive-link-socialgroup-small%22%20data-containerid%3D%2217%22%20data-containertype%3D%22-2%22%20data-objectid%3D%224249%22%20data-objecttype%3D%22700%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fgroups%2Ftfc-brazil%22%20target%3D%22_blank%22%3EThe%20NXP%20Cup%20-%20Brazil%3C%2FA%3E%2C%20%3CA%20_jive_internal%3D%22true%22%20class%3D%22jivecontainerTT-hover-container%20jive-link-socialgroup-small%22%20data-containerid%3D%2217%22%20data-containertype%3D%22-2%22%20data-objectid%3D%2251374%22%20data-objecttype%3D%22700%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fgroups%2Ftfc-china%22%20target%3D%22_blank%22%3EThe%20NXP%20Cup%20-%20China%3C%2FA%3E%2C%20%3CA%20_jive_internal%3D%22true%22%20class%3D%22jivecontainerTT-hover-container%20jive-link-socialgroup-small%22%20data-containerid%3D%2217%22%20data-containertype%3D%22-2%22%20data-objectid%3D%226486%22%20data-objecttype%3D%22700%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fgroups%2Ftfc-malaysia%22%20target%3D%22_blank%22%3EThe%20NXP%20Cup%20-%20Malaysia%3C%2FA%3E%2C%20%3CSPAN%3EThe%20specified%20item%20was%20not%20found.%3C%2FSPAN%3E%2C%20%3CA%20_jive_internal%3D%22true%22%20class%3D%22jivecontainerTT-hover-container%20jive-link-socialgroup-small%22%20data-containerid%3D%2217%22%20data-containertype%3D%22-2%22%20data-objectid%3D%226179%22%20data-objecttype%3D%22700%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fgroups%2Ftfc-usa%22%20target%3D%22_blank%22%3EThe%20NXP%20Cup%20-%20North%20America%3C%2FA%3E%2C%20%3CSPAN%3EThe%20specified%20item%20was%20not%20found.%3C%2FSPAN%3E%2C%20%3CA%20_jive_internal%3D%22true%22%20class%3D%22jivecontainerTT-hover-container%20jive-link-socialgroup-small%22%20data-containerid%3D%2217%22%20data-containertype%3D%22-2%22%20data-objectid%3D%2251422%22%20data-objecttype%3D%22700%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fgroups%2Ftfc-taiwan%22%20target%3D%22_blank%22%3EThe%20NXP%20Cup%20-%20Taiwan%3C%2FA%3E%2C%20%3CA%20_jive_internal%3D%22true%22%20class%3D%22jivecontainerTT-hover-container%20jive-link-socialgroup-small%22%20data-containerid%3D%2217%22%20data-containertype%3D%22-2%22%20data-objectid%3D%2215351%22%20data-objecttype%3D%22700%22%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Fgroups%2Ftfc-emea%22%20target%3D%22_blank%22%3EThe%20NXP%20Cup%20EMEA%3C%2FA%3E.%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%20style%3D%22min-height%3A%208pt%3B%20padding%3A%200px%3B%22%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3EEarl%20Orlando%20Ram%C3%ADrez-S%C3%A1nchez%3C%2FP%3E%3CP%3ETechnical%20Support%20Engineer%3C%2FP%3E%3CP%3EFreescale%20Semiconductor%3C%2FP%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1115555%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EGeneral%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1115556%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20Line%20scan%20camera%20with%20KSDK%20%5BADC%20%2B%20PIT%20%2B%20GPIO%5D%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1115556%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHey%20Earl%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EWhen%20I%20import%20the%20project%20to%20KDS%2C%20the%20header%20files%26nbsp%3B%26nbsp%3B%22fsl_clock_manager.h%22%20and%26nbsp%3B%26nbsp%3B%3CSTDIO.H%3E%20are%20not%20in%20the%20project.%26nbsp%3B%20Is%20this%20a%20fault%20on%20my%20end%3F%26nbsp%3B%3C%2FSTDIO.H%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EThanks%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EBenjamin%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎06-30-2015 02:20 PM
Updated by: