If you don't need to PWM very fast you can simply use a low-to-high logic level converter from the 4000 family (eg. CD40109B). Drive current is only a few mA so they'll not drive big MOSFETs fast. 

There are plenty of gate-driver chips if you need to drive a big MOSFET fast (hundreds of mA or amperes of current drive to supply the gate charge fast), but they tend to be more expensive. 

Control 8V H-Bridge with microcontroller
I want to read/input the body of a table from a separate file. I have mostly solved this problem using this question.

But when I try to read a table with multicolumn from a separate file, it failed.
The following is an example.

%main.tex
\documentclass{article}
\usepackage{filecontents,catchfile}
\begin{filecontents*}{table.tex}
%table.tex
    \hline
    A &amp; B  &amp; C &amp; D  \\   \hline
    E &amp; \multicolumn{3}{l|}{This is generated by excel2latex macro. I want to let it auto wrap according to the width of (B+C+D) }   \\      \hline

\end{filecontents*}

\begin{document}

Table test.

\section{Insert a full table}

    \begin{tabular}{|p{2cm}|p{2cm}|p{2cm}|p{2cm}|}
    \hline
    A &amp; B  &amp; C &amp; D  \\   \hline
    E &amp; \multicolumn{3}{p{6cm}|}{This is generated by excel2latex macro. I want to let it auto wrap according to the width of (B+C+D) }   \\      \hline
    \end{tabular}%

\section{ Input the body of table from a separate file}

\CatchFileDef{\mytable}{table.tex}{}% table.tex &gt; \mytable
    \begin{tabular}{|p{2cm}|p{2cm}|p{2cm}|p{2cm}|}
  \mytable
    \end{tabular}%

\end{document}


I just don't want to manually define the width in the body of table because it is generated automatically.
