Generally to input higher voltage than Vcc of CPU to port is not guaranteed. But +12 voltage for automotive can be inputted to port directly by restricting current.
Please confirm detailed information of current restriction value and etc. for this specification with datasheet.
+B Input (individual corresponding)
+B input port with external resister (for current control)
Sample recommended circuit